On Apr 14, 2006, at 4:10 PM, Mark O'Neill wrote:
I've noticed that many snippets of code I've seen use something like:
for i = UBound(MyArray) DownTo 0
...
next
instead of
for i = 0 to UBound(MyArray)
...
next
Now, aside from the obvious that DownTo is in reverse order are there
any gains in using DownTo?
This drives me crazy. When I learned BASIC (QuickBasic 4.5 on a DOS PC,
in case you're wondering) you could specify negative steps:
for i=10 to 0 step -1
...
next
REALbasic just skips over this entire code block, apparently ignoring
the step parameter.
Anyone else find this annoying?
Eric M. Williams
Oxalyn Software
http://software.oxalyn.com/
AE Monitor
http://software.oxalyn.com/AEMonitor/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>