Stop Method
Description
Stops all normal SPEL+ tasks running in the Controller and optionally stop all background tasks.
Syntax
Sub Stop ()
Sub Stop (SpelStopType StopType)
Parameters
- StopType
Specifies whether to stop only normal tasks (StopNormalTasks) or all tasks (StopAllTasks). If omitted, StopNormalTasks is specified.
Note
If the Stop method is executed when ResetAbortEnabled is True, the error 10101 occurs when executing Start or Reset methods.
To release the error, execute ResetAbort method after executing Stop method.
See Also
Continue Method, Pause Method, ResetAbort Method, ResetAbortEnabled Property, Start Method, SpelStopType Enumeration
Stop Example
VB Example:
Sub btnStop_Click( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnStop.Click
m_spel.Stop()
End Sub
C# Example:
void btnStop_Click(object sender, EventArgs e)
{
m_spel.Stop();
}