realbasic-nug
[Top] [All Lists]

Re: Deleting a row of a Multi-Dimension Array

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Deleting a row of a Multi-Dimension Array
From: Joe Huber <joehuber at talasoft dot com>
Date: Sun, 9 Jan 2005 16:30:39 -0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <7A8AB8CC-61F7-11D9-AF1C-000A95728606 at aboutfacedata dot ab dot ca> <a06200701be071346d041 at [10 dot 10 dot 13 dot 4]>
At 9:32 PM -0700 1/8/05, Kevin Lohka wrote:

I can't seem to find a simple way to delete a row of a multi-dimension array, from the middle of the array, given that the array.remove method only works for single dimension arrays?

Kevin

Depending on your needs, you might consider creating a new class with properties that correspond to the columns of data in your array.

Then you can use a one dimensional array of these classes to represent your data. Voila, you now can use the magical Insert, Remove, Append and Pop array functions. :-) And often times a class can be a better way to represent a 'row' of your data anyway.

Hope this helps,
Joe Huber
_______________________________________________
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>

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