At 3:49 PM -0600 2/19/07, Craig A. Finseth wrote:
> > Of course, RB's always-do-the-for-loop-once is a pain
>
> To what problem are you referring?
>
>dim i, count as integer
>for i = 0 to count - 1
> ...
>next i
>
>It still does it once even if count is 0.
Hi Craig
No, the for loop works fine here.
dim i, count as integer
for i = 0 to count - 1
msgbox "Loop ran"
next i
msgbox "Finished"
I see Finished, but not LoopRan... I think you may be experiencing
the off by one mirage of which we were speaking. :-)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>