You'll notice that the original designer of REALbasic tried to deal  
   with this intelligently. So rather than a Count(Array), we have UBound 
   (Array), so you can index from 0 to that and it works. Sadly, this  
   sort of policy is not followed throughout the framework, either.

Sort of.  If your array is 0 based, UBound is 1, even if it only has 1
element.  So, you need to keep your own count of elements.  *sigh*.

_Most_ of RB is 0-based (thankfully).  Arrays are 0-based and broken.
Strings are 1-based.

This is one area where C/Perl/etc. win hands down. (<insert flame war>)

Craig
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to