home *** CD-ROM | disk | FTP | other *** search
- // This is an example of how to increment a numeric DEFINE argument. The
- // argument must be initially defined to a numeric value of the desired
- // string length.
-
- // (Note: A properly defined length is important since the TEST logic
- // compares hex value, case sensitive, and string length. Thus, the
- // comparison of 2==02 would fail since 2 is greater than 0.)
-
- // Let's use argument 0 and DEFINE it to a value of 0 for comparison
- // against other arguments/variables in a range of 00 to 99.
-
- DEFINE %0 00
-
- WHILE %0<10
- ECHO The current value for argument 0 is %0
- DEFINE %0 %0+=01
- WAIT 1
- LOOP
-