On 17-May-07, at 7:14 AM, Daniel Stenning wrote:

> This makes me wonder: -  Idoes Ubound use a method/function call to  
> get the
> ubound value,  or does the RB generate code to directly access a  
> "property"
> or variable holding the internal array size ?.

It's a method call

Try
        dim someArray(-1) as integer
        someArray.append 1
        someArray.append 2

        for i as integer = 0 to ubound(someArray)
                someArray.append i
        next

> Naturally there would be some speed advantage to NOT using any  
> function to
> get the size.

Except the size can change :)


_______________________________________________
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