Command Line

Command GOSUB

Function:

Jump to another part of a batch program and continue executing the batch program from that point onwards until a RETURN command is found. Execution of the batch program will then return to the next command following the original GOSUB command.
Syntax:
GOSUB label
labelSequence of characters.
Note:
  • The label must also appear on its own line elsewhere in the batch program, preceded by a colon, for example :-
    GOSUB subproc
    ...
    ...
    :subproc
    ...
    ...
    RETURN
  • GOSUB's can be nested a maximum of 8 levels.
  • Also see command GOTO and Batch Programs.

Copyright © 1995-2005 Lucien Cinc, All Rights Reserved
WinOne is an Australian registered trademark of Lucien Cinc