EXIT SUB: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "The '''EXIT SUB''' statement can be used in a SUB routine to exit before the code ends. {{PageSyntax}} :: EXIT SUB * Use EXIT SUB to immediately EXIT a SUB if an undesired condition is created. * EXIT SUB is not the same as END SUB which is required in a SUB procedure. ''See also:'' * SUB * FUNCTION {{PageNavigation}}") |
No edit summary |
||
Line 1: | Line 1: | ||
The '''EXIT SUB''' statement can be used in a [[SUB]] | The '''EXIT SUB''' statement can be used in a [[SUB]] procedure to exit from the procedure before its code ends. | ||
{{PageSyntax}} | {{PageSyntax}} | ||
: | : [[EXIT SUB]] | ||
{{PageDescription}} | |||
* Use '''EXIT SUB''' to immediately exit a [[SUB]] procedure if an undesired condition is created. | |||
* '''EXIT SUB''' is not the same as [[END SUB]], which is required to designate the regular end of the code in a [[SUB]] procedure. | |||
* [[SUB]] | {{PageSeeAlso}} | ||
* [[FUNCTION]] | * [[SUB]], [[END SUB]] | ||
* [[FUNCTION]], [[END FUNCTION]] | |||
{{PageNavigation}} | {{PageNavigation}} | ||
[[Category:Final]] |
Revision as of 00:10, 22 December 2022
The EXIT SUB statement can be used in a SUB procedure to exit from the procedure before its code ends.
Syntax
Description
- Use EXIT SUB to immediately exit a SUB procedure if an undesired condition is created.
- EXIT SUB is not the same as END SUB, which is required to designate the regular end of the code in a SUB procedure.
See also