END_SUB

END_SUB

ENDS A SUBROUTINE

  • Type: Command
  • Parameter: 0
  • Group: Structures

ACTION

The command SUB ends a sub-routine.

SYNTAX: END_SUB

USE

  • The command END_SUB is used to end a subroutine.

ERROR

  • None.

EXAMPLE

dim i%

for i%=1 to 10

to_printer(i%)

next i%

end

sub to_printer(j%)

print j%

end_sub

SEE ALSO

SUB

EXIT_SUB