realbasic-nug
[Top] [All Lists]

Re: Size of an Array??

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Size of an Array??
From: Kevin Ballard <kevin at sb dot org>
Date: Wed, 12 May 2004 00:02:38 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
References: <p06020406bcc7421db65b at [10 dot 0 dot 1 dot 4]> <09ce01c437cc$31e231a0$6500a8c0 at Circe>
I will mention that there is a big difference between UBound and the traditional array-length methods of other languages, which is UBound gives you the upper bound, not the size. This means you iterate from 0 to UBound, not from 0 to UBound - 1.

Just a friendly pointer,
Kevin

On May 11, 2004, at 10:52 PM, Aaron Ballman wrote:

Is there some sort of 'sizeof' command that I cannot seem to locate
or is there a programmatic way of doing this??

You are looking for the UBound method to tell you the upper bound on the
array.

--
Kevin Ballard
kevin at sb dot org
http://www.tildesoft.com
http://kevin.sb.org

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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>