GOTO NEXT

GOTO NEXT

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

GOTO NEXT

Branches from an exception handler to the command immediately following the command that caused the exception.

Syntax

GOTO NEXT

Comments

GOTO NEXT is used only in an exception handler and only to branch to the command immediately following the one that caused the exception to occur. GOTO NEXT exits the exception handler, and closes it in the same way as ENDON.

Example

procedure DoReports()

 on break

  output “*** Report Terminated by User ***”

  goto next

 endon

 report from clients (unrelated) placed orders

  (report commands)

 endreport

 report from products (unrelated) require orders

  (report commands)

 endreport

 report from orders (unrelated) issued invoices

  (report commands)

 endreport

endprocedure

If a break condition occurs during the generation of a report, a message is output and execution resumes at the command following the one that was interrupted.

See Also

GOTO

GOTO PREVIOUS

ON

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish