# Script

This provides access to the underlying Script Engine.
Function/Property | Description
ExecuteProc(ProcName: string; [Params: array of Variant]) | Calls the specified procedure, passing the (optional) parameters to it.
ExecuteFunc(FuncName: string; [Params: array of Variant]): Variant | Calls the specified function, passing the (optional) parameters to it, and returning the result.
Pause | Pauses the execution of the current script. To resume click the 'Run' button or select the 'Script | Run' menu item.
Example: procedure TestProc(s: string); begin ShowMessage(s); end; function TestFunc(arg1, arg2: Integer): Integer; begin Result := arg1 * arg2; end; begin // Execute TestProc, passing 'This is a test' as a parameter. Script.ExecuteProc('TestProc', ['This is a test']); // This will pause script execution until you click the > run button (or select 'Script | Run') Script.Pause; // Call TestFunc, passing parameters 5,4 and show the result. ShowMessage(Script.ExecuteFunc('TestFunc', [5, 4])); end;