RunScriptCommand Function (version 9)
The RunScriptCommand function is used to execute a list of script statements. The script actions are those included in the script sections of the Auxiliary Files. If an error occurs trying to run a script command, an error will be returned through EString.
RunScriptCommand(Statements, EString)
Parameter Definitions
Statements : String The block of script actions to be executed. Each script statement must end in a semicolon. The block of script actions should not be enclosed in curly braces.
EString : Variant This parameter must be assigned a variable declared as a Variant. This parameter is for a return value only, and will assign the passed variable a string representing an error that may have occurred in the Simulator Automation Server. If no error occurred, the EString variable will return an empty string.
Example
RunScriptCommand("Entermode(RUN); SolvePowerFlow;", EString)
This function call will switch to Run mode and then will solve the power flow of the present case.