Xbasic
SCRIPT_LOAD Function
Syntax
Script_Contents as C = SCRIPT_LOAD( script_name as C [, Password as C ] )
Script_Contents as B = SCRIPT_LOAD( script_name as C [, Password as C ] )
Arguments
- script_nameCharacter
The name of a script. Character
- PasswordCharacter
Optional. The password needed to open a script if it is password protected. Character
Description
Return script contents (optional password can be used to load protected scripts).
Discussion
The SCRIPT_LOAD() functions returns a character string or blob that contains the contents of Script_Name. If the script has been password protected, you need to specify the Password in order to retrieve the script.
Example
Loads the script into a variable, "x".
X = script_load("export_sales")
Limitations
Desktop applications only.
See Also