|
|
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 ENDPROC 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 :-
PROC yesno
:again
CALLPROC yesno "Continue (Y/N) ?" |
|
|
|
|
|
|
Copyright © 1995-2012 Better Computers Australia Pty Ltd, All Rights Reserved
WinOne is an Australian registered trademark
Visit our HTPC Store.