Runs another script in the workspace and optionally sets the data source for the called script. After the called script runs, playback continues in the calling script. See Calling scripts from other scripts.
Syntax
CallScript("ScriptName", "DatasheetName")
Arguments
| Argument | Description |
|---|---|
| ScriptName | Script name to call. Must be in the same workspace. |
| DatasheetName | Optional datasheet to use as the data source for the called script. Data sources are ignored unless you specify a datasheet for the called script in this statement. If a datasheet is specified, the called script runs once for each row in it. If a datasheet is not specified, the called script only runs once, but has access to the variables and data source associated with the calling script and any statements declared before the Script.CallScript statement. |
Supported objects
Script
Example
Script.CallScript("MenuChecks")