samintz
Scott Mintz
- May
- 1,590
- 27
I was testing Vince's timing issue with arrays and noticed an odd issue with the TIMER command.
I had to double the %'s - set a[%%i]=0 - in order to get rid of the TCC error.
If I change the command to be timer & do ... & timer off then it works as I expected it to.
Why do I need to double the %'s ?
-Scott
Code:
setarray /f a[100]
timer do i=0 to 99 (set a[%i]=0)
TCC: Invalid array argument (out of bounds) "a[100]"
...
TCC: Invalid array argument (out of bounds) "a[100]"
Timer 1 off: 14:51:15 Elapsed: 0:00:00.055
I had to double the %'s - set a[%%i]=0 - in order to get rid of the TCC error.
If I change the command to be timer & do ... & timer off then it works as I expected it to.
Why do I need to double the %'s ?
-Scott