;========================================================================================================================================== ; ; How to store commandline parameters? ; ;========================================================================================================================================== ; Topic : More ON parameters (9 of 9) ; Conf : WinBatch ; From : Marty marty + bbs@winbatch.com ; Date : Thursday, August 01, 2002 10 : 46 PM ; --Imagination is more important than knowledge. ;========================================================================================================================================== ; Version 1. If param0 > 0 arrArgV = ArrDimension (param0) For intA = 1 To param0 arrArgV[intA - 1] = param%intA% Next Else arrArgV = ArrDimension (0) EndIf ; DropWild ("param*") ; Version 2. Switch param0 Case (param0 != 0) * param0 arrArgV = ArrDimension (param0) Continue Case 9 arrArgV [8] = param9 Case 8 arrArgV [7] = param8 Case 7 arrArgV [6] = param7 Case 6 arrArgV [5] = param6 Case 5 arrArgV [4] = param5 Case 4 arrArgV [3] = param4 Case 3 arrArgV [2] = param3 Case 2 arrArgV [1] = param2 Case 1 arrArgV [0] = param1 Break Case 0 arrArgV = ArrDimension (0) EndSwitch ; DropWild ("param*") Exit ;==========================================================================================================================================