EXIT SUB

From QB64 Phoenix Edition Wiki
Revision as of 00:18, 22 December 2022 by RhoSigma (talk | contribs)
Jump to navigation Jump to search

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


Syntax

EXIT SUB


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



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