XSalScript

PPJ.Runtime.XSal.XSalScript

Namespace: PPJ.Runtime.XSal

Assembly: PPJ.Web.XSal.49 (4.9.0.0)

Implementation of XSalScript

public class XSalScript

Constructors

XSalScript()

Constructs a new empty XSalScript object.

XSalScript(source)

Constructs a new XSalScript object and compiles the specified source code.

Name
Type
Description

Properties

Context

Objectarrow-up-right: Returns/Sets the context for the execution of the script.

CSharpSyntax

Booleanarrow-up-right: Returns/Sets the C# flag to turn on the preprocessor. When this property is false, the preprocessor tries to adapt old XSalScript syntax to C# syntax.

DebugMode

Booleanarrow-up-right: Returns/Sets the debug mode. When on the script will popup the error message box.

Handle

IntPtrarrow-up-right:

HasErrors

Booleanarrow-up-right: Returns true if the script object contains a list of errors.

Interpreter

ScriptEngine: Returns the instance of the interpreter used by XSalScript.

LastError

Stringarrow-up-right: Returns the last error message.

Source

Stringarrow-up-right: Returns/Sets the script source code.

Methods

AddLine(line)

Adds a line to the script.

Parameter
Type
Description

Returns: Booleanarrow-up-right.

Dispose()

FromHandle(handle)

Parameter
Type
Description

Returns: XSalScriptarrow-up-right.

Run()

Executes the compiled script and returns the return value.

Returns: Stringarrow-up-right.

Last updated