PaxScripter Properties


PaxScripter.Breakpoint_List

Returns collection of breakpoints.
public BreakpointList Breakpoint_List

Read only.

PaxScripter.Call_Stack

Returns call stack.
public CallStack Call_Stack

Read only.

PaxScripter.CurrentLine

Returns current line (at compile-time or at run-time).
public string CurrentLine

Read only.

PaxScripter.CurrentLineNumber

Returns current line number (at compile-time or at run-time).
public int CurrentLineNumber

Read only.

Example

for (;;)
{
    paxScripter1.Run(RunMode.TraceInto);
    MessageBox.Show(string.Format("Line{0}: {1}",
	paxScripter1.CurrentLineNumber, paxScripter1.CurrentLine));
.................................

PaxScripter.CurrentModuleName

Returns name of current module (at compile-time or at run-time).
public string CurrentModuleName

Read only.

PaxScripter.Error_List

Returns collection of errors.
public ErrorList Error_List

Read only.

Example

foreach (ScriptError err in paxScripter1.Error_List)
{
    MessageBox.Show(string.Format("Error at {0} stage: {1}. Line {2}: {3}",
    paxScripter1.State,
    err.Message,
    err.LineNumber,
    err.Line));
}

PaxScripter.HasErrors

Returns 'true' if scripter contains errors.
public bool HasErrors

Read only.

PaxScripter.HasWarnings

Returns 'true' if scripter contains warnings.
public bool HasWarnings

Read only.

PaxScripter.Module_List

Returns list of modules.
public ModuleList Module_List

Read only.

PaxScripter.State

Returns state of scripter.
public ScripterState State

public enum ScripterState
{
    None,
    Init, // scripter does not contain any module
    ReadyToCompile, // contains modules and code
    Compiling, // compiles
    ReadyToLink, // ready to link
    Linking, // linkes compiled code
    ReadyToRun, // ready to run
    Running, // runs program
    Terminated, // program has been terminated
    Paused, // program has been paused
    Error // error has raised
};

Read only.

PaxScripter.Warning_List

Returns compile time warning list.
public ErrorList Warning_List

Read only.

Example

foreach (ScriptError err in paxScripter1.Warning_List)
{
    MessageBox.Show(string.Format("Warning {0}. Line {1}: {2}",
    err.Message,
    err.LineNumber,
    err.Line));
}


Copyright © 2005-2024 Alexander Baranovsky. All rights reserved.