[DUG] for..loop

Ross Levis ross at stationplaylist.com
Tue Aug 7 15:21:44 NZST 2007


Why does the Delphi help say that a For loop variable has an undefined value
after the loop finishes it's iterations?  Surely the variable is always 1
greater than the maximum "To" value.  That is what appears to happen in all
situations I've tested.  I often use this test after a For loop to tell if
something was not found.  What would cause a different result than this?

Cheers,
Ross.



More information about the Delphi mailing list