realbasic-plugins
[Top] [All Lists]

Re: Returning an RB array

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Returning an RB array
From: "Stephen A. Cochran Lists" <stephen dot a dot cochran dot lists at cahir dot net>
Date: Thu, 25 Jan 2007 16:41:53 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <20070125210707 dot 9E57E6DC8C0 at mail dot verex dot com>
I was thinking arrays, I thought the class would have to store the data in it's properties, which would still have to be arrays.

You're saying store the data in the class as a delimited string or something like that, and then have it's methods return it in the format desired or as random access?

Steve

On Jan 25, 2007, at 4:07 PM, joe at strout dot net wrote:

No, you're still thinking about arrays.  I'm saying, forget arrays.
Design your own class (or classes) that return exactly the information
requested, and use those INSTEAD of arrays.  Just as Object2D doesn't
have any method that returns an array of its contents, yet you can
access its contents just fine via its methods (Count, Item, etc.).

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