A variable may contain an integer, a floating point number, a string, a list, an array or a string representing an integer or a floating point number . Automatic conversions between numbers and strings are performed as a matter of course during execution. If a function requires a string parameter and a numeric parameter is supplied, the variable will be automatically modified to include the representative string. If a function requires a numeric parameter and a string parameter is supplied, an attempt will be made to convert the string to the required numeric parameter. If it does not convert successfully, an error will result. Variables containing arrays are created using the function ArrDimension Variable name length is limited to 30 characters. Variable size: variable content length has no defined limit. It is only limited by available system memory. There is a hard maximum of 250MB of total string memory available. All WinBatch variables must start with an alphabetic character. They may contain but not start with numeric digits. If you name a variable something like, "30DaysAgo", you'll get an error message that says "Expression continues past expected end." The total number of variables is limited to 2000. If your script uses more than that, you would need to drop unused ones to free up variable spaces for newer ones. To list the number of variables used:
list=IntControl(77,12,0,0,0) varname = AskItemList("My Variables",list,@tab,@sorted,@single) Drop(%varname%)
|
§ Step by step guide to learning WIL § Notes |