Click or drag to resize

BasicNoUIObjRun Property

Gets or sets whether the macro/module is currently running.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
public bool Run { get; set; }

Property Value

Boolean
The macro/module running state.

Implements

IBasicNoUIRun
Remarks

Assigning True to the Run property causes the text in the Code property to be parsed and execute. Syntax or run-time errors trigger the ErrorAlert event.

Setting Description
True Script code is executing.
False Script code is not executing.

Assigning False to the Run property causes the execution to halt. After that point the macro/module can be restarted, but not resumed.

Example
Run and end buttons:
private void runButton_Click(object sender, System.EventArgs e)
{
    // start execution
    basicIdeCtl1.Run = true;
}
private void endButton_Click(object sender, System.EventArgs e)
{
    // end execution
    basicIdeCtl1.Run = false;
}
See Also