Progress KB - What does the STOP-AFTER expression do?




Feedback
Did this article resolve your question/issue?

   

Article

What does the STOP-AFTER expression do?

« Go Back

Information

 
TitleWhat does the STOP-AFTER expression do?
URL NameWhat-does-the-STOP-AFTER-expression-do
Article Number000186661
EnvironmentProduct: OpenEdge
Version: 10.x, 11.x
OS: All supported platforms
Other: N/A
Question/Problem Description
What does the STOP-AFTER expression do?
Steps to Reproduce
Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution
The STOP-AFTER phrase specifies a time-out value for a DO, FOR, or REPEAT block. 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 and default STOP condition handling occurs. Use an ON STOP phrase on the block (or an enclosing block) to alter the default STOP condition handling.

The following example time-limits a procedure call using a RUN statement:: 
 
DEFINE VARIABLE cnt as INTEGER INITIAL 0.
PROCEDURE bumpCnt:
    cnt = cnt + 1.
END.

 
DO STOP-AFTER 5:
    RUN bumpCnt.
END.

* There might be circumstances in which the timer does not run, such as when the session is blocked waiting for a network message or a child process.

Workaround
Notes
References to Other Documentation:

OpenEdge® Development: ABL Reference ABL Syntax Reference: DO statement
Last Modified Date11/13/2015 9:52 PM
Attachment 
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.