The following code works as expected:
For /L %IDX In (0,1,%TDX) Do (
@Echo %IDX %CmdLnths[%IDX] %CmdNames[%IDX]
)
The following code does not (at all!!!!! - it does exactly one iteration of the loop
):
Set IDX=0
Do While %IDX LE %TDX
@Echo %IDX %CmdLnths[%IDX] %CmdNames[%IDX]
Set IDX=%Inc[%IDX]
EndDo
There are no other changes to the code other than what's shown here between working and not working. The reason I care is because I have other do-while loops in the code that also do not appear to work, and they really can't be turned into "for" loops because they are not "counted" loops. Please excuse my evident stupidty, but what is going on here????
TCC 10.00.67 Windows 7 [Version 6.1.7100]
For /L %IDX In (0,1,%TDX) Do (
@Echo %IDX %CmdLnths[%IDX] %CmdNames[%IDX]
)
The following code does not (at all!!!!! - it does exactly one iteration of the loop

Set IDX=0
Do While %IDX LE %TDX
@Echo %IDX %CmdLnths[%IDX] %CmdNames[%IDX]
Set IDX=%Inc[%IDX]
EndDo
There are no other changes to the code other than what's shown here between working and not working. The reason I care is because I have other do-while loops in the code that also do not appear to work, and they really can't be turned into "for" loops because they are not "counted" loops. Please excuse my evident stupidty, but what is going on here????
TCC 10.00.67 Windows 7 [Version 6.1.7100]