Procedure CallsBatch procedures allow a structured block of statements to be called from with in a Batch Program. Procedure declarations begin with a PROC statement and end with an ENDPROC statement, as follows :-
REM Procedure body
Procedures are called using the CALLPROC command and may be called recursively up to 16 levels deep. Consider the following example which prompts a user for a yes or no answer :-
CALLPROC yesno "Continue (Y/N) ?"
Copyright © 1995-2018 Lucien Cinc, All Rights Reserved
WinOne® is an Australian registered trademark
Go to the Australian Command Line Software web site.