On Jan 25, 2007, at 20:39 UTC, Stephen A. Cochran Lists wrote:

> I thought about that, but it seems a class would run into the same  
> issues. My plugin is accessing some directory services (proprietary, 
> but conceptually similar to LDAP).
> 
> From some lookup function, I need to return the results, which is  
> basically a two-dimensional array. each row is one matching record,  
> with the columns determined by the fields requested.

Right, so you return an object that has an accessor to return the item
for any row and column.  Or perhaps better, an object that returns any
row all at once, as a Dictionary.

> Both dimensions would be unknown, and would seem to encounter the  
> same problem inside a class as outside.

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.).

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

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

Reply via email to