When an MS Script is run, the Customizer module passes several system variables to the script processor. For example, a script can use the following variables to condition logic based on user code or company code. The variable names begin with MAS_, followed by SCR_ (for script) and conclude with a descriptive code, for example, CMP (for company).
The following variables are passed to the script processor, but are not returned to the software.
MAS_SCR_CMP
string
Company code [XXX]
MAS_SCR_USR
string
User code [XXX]
MAS_SCR_MOD
string
Module code [X/X]
MAS_SCR_DTE
string
Module date [YYYYMMDD]
MAS_SCR_HWD
string
Sage 100 home folder [HWD]
MAS_SCR_LWD
string
Sage 100 current working folder [LWD]
MAS_SCR_LIB
string
Nomads library [ ../xx/xxxxxxxx.LIB]
MAS_SCR_PNL
string
Nomads panel [ PNL_xxxxxx ]
MAS_SCR_OBJ
string
Nomads control [ BT_LINK_x ]
MAS_SCR_CS
number
Set to 1 if running under a Sage 100 Advanced client (WindX)
System variables can be set within the script to pass information back to the Customizer module. They can be placed anywhere in the script and must follow the syntactical conventions of the specified script language.
© Sage Group plc 2019. Privacy Policy | Copyright/Trademarks