Encapsulates the AutoMate™ action in the “BASIC Scripting” group, “Run a BASIC Script.” The method runs another AutoMate™ BASIC Script.
Declaration
function RunScript (varFilename As Variant) As Integer
Parameters
varFilename
The filename of the script to execute.
Description
Use the RunScript method to run another AutoMate™ BASIC script from within the currently executing script.
If possible, try to avoid running nesting scripts using the RunScript command. Each call to RunScript allocates memory for a AutoMate™ BASIC interpreter, which uses significant system resources. Calling RunScript multiple times without allowing the interpreter to clean up its resources could a rapid loss of memory.