Skip to content

EXIT SUB

Samuel Gomes edited this page Nov 8, 2022 · 1 revision

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

Clone this wiki locally