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 22:43:13 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <20070125220101 dot 726556DC949 at mail dot verex dot com>

On Jan 25, 2007, at 5:01 PM, joe at strout dot net wrote:

No, it can store it *internally* however you want.  A C array is fine,
if you like that sort of thing.  Or a linked list, or a hash table, or
whatever you want. What goes on in your plugin is between you and your
C compiler.  :)

We are pretty close ;)

I wouldn't store them as delimited strings.  I generally use something
like a class I wrote long ago called "Vector":
  <http://www.strout.net/info/coding/classlib/Vector.html>

But you can use whatever suits you best.  And then, yes, have your
class's methods return this data in some RB format or as random access.

Think I've heard that term in relation to the STLs. Didn't know you invented them ;)

K, so this storage class can then return them in any RB format I want, except an array....which still lends itself to the original problem. The smallest set I'd probably ever want is a row. So I could do it with an internal iterator and a "get next result" function.

Norman mentioned Dictionaries. Can those be created via the API? I just took a quick find on the page...I don't see anything with Dictionary in it's name.

Steve


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


From  Fri 26 Jan 2007 08:15:08 -0700
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 1E3FE182266B; Fri, 26 Jan 2007 07:15:28 -0800 (PST)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on www.realsoftware.com X-Spam-Level: X-Spam-Status: No, score=-1.7 required=4.5 tests=AWL,BAYES_00,NO_REAL_NAME autolearn=no version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
        by xmail.realsoftware.com (Postfix) with ESMTP id CD9FD1822664;
        Fri, 26 Jan 2007 07:15:23 -0800 (PST)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id 99FCF1878AE8; Fri, 26 Jan 2007 09:15:14 -0600 (CST)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
        by lists.realsoftware.com (Postfix) with ESMTP id 131F61878ADB
        for <realbasic-plugins at lists dot realsoftware dot com>;
        Fri, 26 Jan 2007 09:15:09 -0600 (CST)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id 848536DDCC2
        for <realbasic-plugins at lists dot realsoftware dot com>;
        Fri, 26 Jan 2007 08:15:08 -0700 (MST)
Date: Fri, 26 Jan 2007 08:15:08 -0700
From: joe at strout dot net
To: realbasic-plugins at lists dot realsoftware dot com
In-Reply-To: <D4FB6ABD-068F-4B14-A6B5-407EF7CE8D6D at cahir dot net>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20070126151508 dot 848536DDCC2 at mail dot verex dot com>
Subject: Re: Returning an RB array
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot 
com>
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com

On Jan 26, 2007, at 03:43 UTC, Stephen A. Cochran Lists wrote:

K, so this storage class can then return them in any RB format I want, except an array....which still lends itself to the original problem. The smallest set I'd probably ever want is a row. So I could
do it with an internal iterator and a "get next result" function.

Right, or an accessor that returns a result by index, if you can
provide random access.

Norman mentioned Dictionaries. Can those be created via the API? I just took a quick find on the page...I don't see anything with Dictionary in it's name.

You can create any RB class and set its properties using the dynamic
access APIs.  Check the main plugin documentation page; I believe
there's a section about it.

Best,
- Joe


--
Joe Strout -- joe at strout dot net
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>


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