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
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
{{PageSeeAlso}} | {{PageSeeAlso}} | ||
* [[SUB]], [[END SUB]] | * [[SUB]], [[END SUB]] | ||
* [[FUNCTION]], [[END FUNCTION]] | * [[FUNCTION]], [[EXIT FUNCTION]], [[END FUNCTION]] | ||
{{PageNavigation}} | {{PageNavigation}} | ||
Latest revision as of 00:32, 28 January 2023
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