prev Menu next
Control Statements ☆
STOP statements
STOP
stops the exception and then lets the program finish.
GOTO statements
GOTO line_number
lets the control go to the line of line_number.
Note.
The control must not be transferred by a GOTO statement as follows.
・From outside to inside of a block.
・From inside to outside of an internal procedure.
・From inside to outside of an exception handling block.
Restrictions on basicAcc
On the following cases, GOTO statements and IF-THEN-line_number statements can not be executed.
branches from inside to outside of when-body (i.e. inside of WHEN~USE)
branches from inside to outside of a DO block that contains a protection block that contains a EXIT DO.
branches from inside to outside of a FOR block that contains a protection block that contains a EXIT FOR.
If a routine (or the main program) has a when-in block that has an exception-handler containing a GOSUB~RETURN subroutine, the routine can not have a GOSUB~RETURN subroutine that is not contained in any protection block.
When GOSUB statements are used, each line must has a line number.