Topics

04 Documentation updates
Designer
Correction: "USE or USELSX name must be a string constant"

The documentation for the error "Use or USELSX name must be a string constant" contains an example that is incorrect, as both "Legal" lines of code result in compiler errors. The corrected text is as follows:

LOTUSSCRIPT LANGUAGE


USE or USELSX name must be a string constant

The name that you specified in a Use or UseLSX statement is not a quoted literal or a string constant though that is what is required. For example, to use the module LSModule :

Use LSModule           ' Illegal
Use "LSModule"         ' Legal


Const myModuleName$ = "LSModule"
Use myModuleName$           ' Legal

Change the name to a quoted literal or string constant.