Raise a timed STOP condition
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
STOP-AFTER phrase specifies a
time-out value for a DO, FOR,
or REPEAT block. This is the syntax in the context of a
DO block :Syntax
|
The integer expression specifies the number of
seconds each iteration of a block has until a time-out occurs. If a time-out occurs, the AVM
raises the STOP condition.
This STOP condition can be handled like
other STOP conditions (for example, by using an ON STOP phrase), or it can be specifically handled by using a
CATCH block for a Progress.Lang.StopAfter object. Specifically handling the condition is the
recommended approach since it is the only way to know that the STOP condition was indeed raised by the STOP-AFTER and not by some other unexpected circumstance occurring within the
block.
For more information on using this feature, see the STOP-AFTER phrase on the DO, FOR, or REPEAT statements in the
ABL Reference.