Introduction | Language Structure | IB Statements | File System | Comet 32 Runtime | Index |
| Syntax: | EXITTO level-number [,EXCP=statement-label] | |
| Discussion: |
The EXITTO statement returns control to the calling program at the
specified level-number.
Level-number is a numeric constant or varaible (length/precision = 2.0) equal to the value of the ENTERLEVEL system variable to which you wish to exit. For example, if a subprogram is running at level 5 (i.e., ENTERLEVEL = 5) and wants to return to level 2 (i.e., ENTERLEVEL = 2), the following statement would be used:
Also see: | |
| Example 1: |
| |
| Example 2: |
|