Skip to main content
Version: 2023

XSalScript

Namespace: PPJ.Runtime.XSal

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

Implementation of XSalScript

public class XSalScript

Constructors

Instance memberXSalScript()

Constructs a new empty XSalScript object.

Instance memberXSalScript(source)

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

NameTypeDescription
sourceString

Properties

Instance memberContext

Object: Returns/Sets the context for the execution of the script.

Instance memberCSharpSyntax

Boolean: 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.

Instance memberDebugMode

Boolean: Returns/Sets the debug mode. When on the script will popup the error message box.

Instance memberHandle

IntPtr:

Instance memberHasErrors

Boolean: Returns true if the script object contains a list of errors.

Static memberInterpreter

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

Instance memberLastError

String: Returns the last error message.

Instance memberSource

String: Returns/Sets the script source code.

Methods

Instance memberAddLine(line)

Adds a line to the script.

ParameterTypeDescription
lineString

Returns: Boolean.

Instance memberDispose()

Static memberFromHandle(handle)

ParameterTypeDescription
handleIntPtr

Returns: XSalScript.

Instance memberRun()

Executes the compiled script and returns the return value.

Returns: String.