The first element of a REALbasic array has index 0. So to declare an
empty array, you set its upper bound to -1. The UBound function
returns the index of the last element of the array. Thus an array has
1 + Ubound(theArray) elements.
Charles Yeomans
On Apr 1, 2006, at 11:10 PM, Kirt Cathey wrote:
Also, why the -1 for count number declaration? To save on memory
allocation?
Thanks,
Kirt
2006/4/2, Kirt Cathey <[EMAIL PROTECTED]>:
John,
Thanks alot. Just to confirm: in RB (too) it is as simple as
declaring
an array of another object/class within a class?
_______________________________________________
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>