Problem with Public Const declarations

Perhaps I don’t underatnd how this is supposed to work - please correct me.

I have a library (called myCommon), which declares some string constants that I need to be used all over my application…

Public Const AccessMode = “Open”

Public Const VoiceOnly = “Allowed”

Public Const WebConference = “Not Allowed”

my expectation is that I can include this library with Use myCommon statement in forms, subforms etc, and I should then be able to get a handle on these strings.

But, it seems to fail intermittently. If I run the program, I see these values OK. But If I go back in with designer, change one of them, recompile the library, open and save all the forms, views etc that use these strings, I still see the old values.

If I declare these directly in the form or subform, then it works OK, but that’s a terrible solution because we then have to change the values in x places - is there no way to centrally keep the strings and make them truly Public??

Subject: it could be…

After changing the script lib, did you change something in the section where the script lib is referenced ie the form global section then save. When I say change something, I mean type a space then delete it inside. Then save it, so the form will recompile, otherwise it saves with out re compiling.

Or if the code is lotus script, then you can use the Recompile all lotus script from the tool menu. The design should find all other design elements that has the reference to the changed script lib, and recompiling them all together.

Xun

Subject: thanks, but

I always add a space to the line that calls the library - learned that long ago.

I can’t run the complete recompile because that signs every design element in the database with my signature - a BIG no-no!

Subject: Re: problem with Public Const declarations

I have similar problems about constants.

When I know which libs use the constant’s lib, I do this trivial in order yo avoid to recompile all the LS in the DB:

Copy the DB in local, recompile all LS in this copy, replace in the good db only the necessary elements.

It would be a nice feature in lotus designer: “Recompile only dependent elments”.

Regards