Equinox Online Help - Language Reference - A to Z
BreakPressed |
|
---|---|
Applies to | |
Syntax | BreakPressed |
Action | [Function] Returns true if the user has pressed Control Break |
Scope | Usable anywhere |
Notes | This function allows the developer to intercept the user's attempt to interrupt a method and act appropriately. Each time it is executed it resets the break condition. The function is most useful if automatic Control Break handling is not enabled. |
Category | Flow Control |
See Also | Block_EndBlock, Continue, Execute, EnableInput, Exit, For...Next, Goto, If_Then, Repeat_Until, Return, Sleep, Subtable, Switch, While_EndWhile |
Example | This example displays a dialog if the user tries to interrupt a Process. At Start of Task eventEnableInput FalseEach Record event if BreakPressed thenAlertButtons "No", "Yes"end if |