realbasic-nug
[Top] [All Lists]

Re: ReDim Array

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: ReDim Array
From: Norman Palardy <palardyn at shaw dot ca>
Date: Tue, 31 Aug 2004 13:13:30 -0600
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>

On Aug 31, 2004, at 12:59 PM, Andrew Keller wrote:

If ReDim is used to increase the elements of an array, is the data in
the existing elements retained?
Barrie

Yes

If you wanted the contents to be deleted, would you ReDim the array to -1 rows, and then back up to what you want, or is there a method for that purpose?

Do just what you said.
Make it -1 then the real size

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