[DUG] for..loop

Rohit Gupta rohit at cfl.co.nz
Tue Aug 7 15:28:07 NZST 2007


Its not part of the language definition.    So you use it at your risk.

Ross Levis wrote:
> 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.
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
>
>
>   

-- 
*Rohit Gupta*
* B.E. Elec.   M.E.   Mem IEEE    Associate IEE*
*Technical Manager*
*Computer Fanatics Limited*
** 
*Tel*     +64 9 4892280
*Fax*    +64 9 4892290
*Email  *rohit at cfl.co.nz <mailto:rohit at cfl.co.nz>**
*Web    *www.cfl.co.nz <http://www.cfl.co.nz/>
 
------------------------------------------------------------------------
This email and any attachments contain information, which is 
confidential and may be subject to legal privilege and copyright. If you 
are not the intended recipient, you must not use, distribute or copy 
this email or attachments. If you have received this in error, please 
notify us immediately by return email and then delete this email and any 
attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.adventureeducation.co.nz/pipermail/delphi/attachments/20070807/87ae2c41/attachment.html


More information about the Delphi mailing list