LOTUSSCRIPT LANGUAGE


Constants defined in LSCONST.LSS
LotusScript provides a set of constants that you can use in place of numeric arguments in certain LotusScript statements, such as MessageBox:

' Declare an Integer variable, theStr%,
' and assign it to the sum of two Integer constants.
Dim theStr%
theStr% = MB_YESNO + MB_ICONQUESTION
MessageBox "Do you want to continue?", theStr%, "Continue?

which is much more readable than

MessageBox "Do you want to continue?", 4 + 32, "Continue?

These constants are defined in the file LSCONST.LSS. Use the %Include directive to incorporate this file into your application in a module that must be loaded when you need to use the constants, which are all explicitly defined to be Public. The syntax for including this file is:

%Include "LSCONST.LSS"

See Also