disableabort

The disableabort statement prevents loops from being stopped early by pressing SHIFT-COMMAND-ESCAPE or by exceeding the maximum allowed loop time.


Parameters

No parameters.


Description

This statement prevents loops from being stopped early by pressing SHIFT-COMMAND-ESCAPE or by exceeding the maximum allowed loop time. This statement can be used to make sure that a sequence of steps is always completed – even if the user presses SHIFT-COMMAND-ESCAPE or if there is a maximum loop time preference set. To learn more, see Preventing Endless Loops.

When using the disableabort statement you must be careful, especially when using loops. The procedure below will hang Panorama because tag=“” will never be true. The only way to stop the loop is to force quit Panorama (Command-Shift-Option-Escape).

disableabort
let i=1
loop
    let tag="<"+array(Text,i,cr())+">"
    stoploopif tag=""
    i=i+1
while forever
enableabort

While this example may look silly, it is easy to create an endless loop without realizing it.


See Also


History

VersionStatusNotes
10.2UpdatedCarried over from Panorama 6.0, but with updated behavior.