EXIT FUNCTION: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "The '''EXIT FUNCTION''' statement can be used to exit the FUNCTION before the code ends. {{PageSyntax}} :: EXIT FUNCTION * Use EXIT FUNCTION to immediately EXIT a FUNCTION if an undesirable condition is created. * EXIT FUNCTION is not the same as END FUNCTION which is required in a FUNCTION procedure. ''See also:'' * EXIT SUB * EXIT DO, EXIT FOR {{PageNavigation}}")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:


{{PageSyntax}}
{{PageSyntax}}
:: EXIT FUNCTION
: EXIT FUNCTION




{{PageDescription}}
* Use EXIT FUNCTION to immediately EXIT a FUNCTION if an undesirable condition is created.
* Use EXIT FUNCTION to immediately EXIT a FUNCTION if an undesirable condition is created.
* EXIT FUNCTION is not the same as [[END FUNCTION]] which is required in a FUNCTION procedure.
* EXIT FUNCTION is not the same as [[END FUNCTION]] which is required in a FUNCTION procedure.




 
{{PageSeeAlso}}
''See also:''
* [[EXIT SUB]]
* [[EXIT SUB]]
* [[EXIT DO]], [[EXIT FOR]]
* [[EXIT DO]], [[EXIT FOR]]

Latest revision as of 00:33, 29 January 2023

The EXIT FUNCTION statement can be used to exit the FUNCTION before the code ends.


Syntax

EXIT FUNCTION


Description

  • Use EXIT FUNCTION to immediately EXIT a FUNCTION if an undesirable condition is created.
  • EXIT FUNCTION is not the same as END FUNCTION which is required in a FUNCTION procedure.


See also



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