CasewareDocs

IsCancellationRequested

This property determines if the current routine is to be canceled.

Compatibility

Available as of IDEA version 9.0

Syntax

IsCancellationRequested

Type

Boolean

Example

Sub Main 
'If the current routine is to be canceled, set ExecutionStatus to EXEC_STATUS_CANCELED.
If SmartContext.IsCancellationRequested Then
SmartContext.ExecutionStatus = EXEC_STATUS_CANCELED
Exit Sub
End If
End Sub