IGWv4Script

Interface for compiling and executing scripts within GWv4.

Contents

Properties

Property Description
LastError Gets the last error that occurred as a string.
LastErrorCode Gets the last error that occurred as a numerical code.

Public Methods

Function Description
Compile Compiles the given script.
Execute Executes the given script.
GetFunction Gets a handle to a function in the script, which can subsequently be called multiple times.
CompileFile Compiles the given script file.

Properties

LastError

Gets the last error that occurred as a string.

BSTR LastError

LastErrorCode

Gets the last error that occurred as a numerical code.

int LastErrorCode

Public Methods

Method: Compile

Compiles the given script.

HRESULT Compile([in] BSTR script, [out, retval] BOOL *ok)

Method: Execute

Executes the given script.

HRESULT Execute([out, retval] VARIANT *ret)

The script must be compiled first.

Method: GetFunction

Gets a handle to a function in the script, which can subsequently be called multiple times.

HRESULT GetFunction([in] BSTR name, [out, retval] IGWv4ScriptFunction **func)

The script must be compiled + executed first.

If the script is recompiled / executed then any exsiting function

Method: CompileFile

Compiles the given script file.

HRESULT CompileFile([in] BSTR script_file, [out, retval] BOOL *ok)