On Apr 1, 2006, at 11:10 PM, Kirt Cathey wrote:

Also, why the -1 for count number declaration? To save on memory allocation?

RB arrays extend from element 0 to an upper bound, which can be found at run time by the UBound method.

If you declare an array with (0) it isn't empty - it actually has one element. If you know ahead of time how many elements you need, you can (should) use that information.
If not, plan to append elements to an empty array.

To declare an empty array, the upper bound needs to be -1, not 0.

Russ

_______________________________________________
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>

Reply via email to