home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / timevent / taskmstr / count.tsk < prev    next >
Encoding:
Text File  |  1995-05-07  |  629 b   |  20 lines

  1. // This is an example of how to increment a numeric DEFINE argument.  The
  2. // argument must be initially defined to a numeric value of the desired
  3. // string length.
  4.  
  5. // (Note: A properly defined length is important since the TEST logic
  6. // compares hex value, case sensitive, and string length.  Thus, the
  7. // comparison of 2==02 would fail since 2 is greater than 0.)
  8.  
  9. // Let's use argument 0 and DEFINE it to a value of 0 for comparison
  10. // against other arguments/variables in a range of 00 to 99.
  11.  
  12. DEFINE %0 00
  13.  
  14. WHILE %0<10
  15.   ECHO The current value for argument 0 is %0
  16.   DEFINE %0 %0+=01
  17.   WAIT 1
  18. LOOP
  19.  
  20.