Gets or sets whether the macro/module is currently running.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic bool Run { get; set; }
Public Property Run As Boolean
Get
Set
public:
virtual property bool Run {
bool get () sealed;
void set (bool value) sealed;
}
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)
{
basicIdeCtl1.Run = true;
}
private void endButton_Click(object sender, System.EventArgs e)
{
basicIdeCtl1.Run = false;
}
Private Sub RunButton_Click ( ByVal sender As Object, ByVal e As System.EventArgs ) Handles RunButton.Click
' start execution
BasicIdeCtl1.Run = True
End Sub
Private Sub EndButton_Click ( ByVal sender As Object, ByVal e As System.EventArgs ) Handles EndButton.Click
' end execution
BasicIdeCtl1.Run = False
End Sub
private: System::Void runButton_Click(System::Object ^ sender, System::EventArgs ^ e)
{
basicIdeCtl1->Run = true;
}
private: System::Void endButton_Click(System::Object ^ sender, System::EventArgs ^ e)
{
basicIdeCtl1->Run = false;
}
See Also