EXIT SUB

From QB64 Phoenix Edition Wiki
Revision as of 23:53, 21 April 2022 by RhoSigma (talk | contribs) (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}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The EXIT SUB statement can be used in a SUB routine to exit before the code ends.


Syntax

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:



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link