%Include "lsconst.lss"

I have a form in an application and have %INCLUDE “lsconst.lss” in the declarations section of the form. This used to work fine but now the statement, whilst no error is received, does not appear to work (graphics associated with messagebox do not display for example).

Also, in Designer, the indicator next to the Declarations in form objects does no go solid, which may indicate it is not recognising the entry?

I have checked that the “lsconst.lss” file resides in the notes executable directory on the machine where the script is compiled. I have searched to ensure only one copy of the file exists.

Any suggestions would be appreciated.

Subject: The set up looks correct

I did some quick testing in 9.0.1 here and do not see an issue.
If you rename lsconst.lss at the OS level and then re save the agent, do you then see a Red X next to the include in the agent? The X would indicate we can’t find the file we are looking for. If we don’t see the Red x just using lsconst.lss, that indicates we are locating the file with no problem.
If we are not seeing the Red X using lsconst.lss, can you give a specific example of a constant you are not able to use?