realbasic-nug
[Top] [All Lists]

Re: ReDim Array

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: ReDim Array
From: Barrie Jones <barrie at spamcop dot net>
Date: Tue, 31 Aug 2004 18:42:07 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BD59F460 dot 36577%lists at redcort dot com> <EBEA0CDB-FB7F-11D8-BD1E-00039396177E at kellerfarm dot com> <D21008E4-FB80-11D8-A9C1-003065F2C108 at shaw dot ca> <4904506E-FB91-11D8-9661-000A95983FBE at ljug dot com> <6D58E19E-FB94-11D8-88B0-003065F2C108 at shaw dot ca>

On Aug 31, 2004, at 5:26 PM, Terry Ford wrote:


On 31-Aug-04, at 2:04 PM, Will Leshner wrote:


On Aug 31, 2004, at 12:06 PM, Terry Ford wrote:

If you are building your array with the addrow method, that is handled automatically. You can always redim it yourself as well in RS.


Append? Insert?

Me wrong, wrong, wrong!!! Give me a thousand lashes with a wet noodle. Although append is almost the same as addrow in a listbox or a menuitem. Hmm. Why isn't there some common name here?

It's not Addrow but Append or Insert as Will mentioned. These work in one dimensional arrays only (I think): [notice the disclaimer so I don't make a fool out of myself twice in the same day].

Multi-dimensional arrays will, AFAIK, still require re-dimming the array to it's proper size(s).

I am using reDim with a 2D global array. At the time of doing the reDim, the newly dimmed array works as expected. BUT it seems to default back to the Global setting next time I call the array (I am re-checking my logic). In the meantime, can someone tell me if reDim should work permanently on a global array?
Thanks,
Barrie

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

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

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