TPAXScripter Properties


TPAXScripter.CallStack

Returns the call stack of the scripter.
property CallStack: TCallStack;

Read-Only

TPAXScripter.CurrentModuleName

Returns current module name of a script at compile-time or run-time.
property CurrentModuleName: String;

Read-Only

TPAXScripter.CurrentSourceLine

Returns current line number of a script at compile-time or run-time.
property CurrentSourceLine: Integer;

Read-Only

TPAXScripter.ErrorDescription

Returns description of a error.
property ErrorDescription: String;

Read-Only

TPAXScripter.ErrorLine

Specifies the position of the error in the script.
property ErrorLine: Integer;

Read-Only

If an error occurs at compile-time or run-time, ErrorLine indicates the line number in the script.

TPAXScripter.ErrorModuleName

Returns name of module which contains error.
property ErrorModuleName: String;

Read-Only

TPAXScripter.ErrorPos

Specifies the position of the error in the script.
property ErrorPos: Integer;

Read-Only

If an error occurs at compile-time or run-time, ErrorPos indicates the position of the error in the script line ErrorLine.

TPAXScripter.ErrorTextPos

Specifies the position of the error in the script.
property ErrorTextPos: Integer;

Read-Only

If an error occurs at compile-time or run-time, TextErrorPos indicates the position of the error in the script. TextErrorPos determines the position of the error in terms of characters.

TPAXScripter.Languages

Enumerates all registered pax-language components.
property Languages[I: Integer]: TPaxLanguage

Read-Only

Example

for I:=0 to PaxScripter1.LanguageCount - 1 do
  ShowMessage(PaxScripter1.Languages[I].LanguageName);

TPAXScripter.Modules

The list of modules of a script.
property Modules: TStringList;

Read-Only

TPAXScripter.ScripterState

Returns state of the scripter.
property ScripterState: TScripterState;

Read-Only

The scripter state can be one of the following:

TPAXScripter.StackSize

Determines size of stack.
StackSize: Integer

Default value of the property is 16000 bytes.

TPAXScripter.Params

Allows to pass parameters into a script (paxPascal language only).
property Params[const ParamName: String]: Variant read GetParam write SetParam;

Arguments

ParamName
Name of parameter

Parameters are passed into the script by reference.

Example

program Demo(A, B);
begin
  print A;
  print B;
  B := 'result value';
end;

TPAXScripter.SourceCode

Represents source code of a script.
property SourceCode[const ModuleName: String]: String;

Read-Only

TPAXScripter.TotalLineCount

Returns total number of lines of a script.
property TotalLineCount: Integer;

Read-Only

TPAXScripter.Values

Provides access to script-defined variables
property Values[const VarName: String]: Variant read GetValue write SetValue;


Copyright © 1999-2006 VIRT Laboratory. All rights reserved.