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: Fri, 26 Jan 2007 11:45:32 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <20070126151508 dot 848536DDCC2 at mail dot verex dot com>

On Jan 26, 2007, at 10:15 AM, joe at strout dot net wrote:

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.

I hadn't used Dicts before, so it didn't click that they were classes and could be created that way.

Since Dicts hold varients, I should actually be able to make a dict that held other dicts, creating a multidimentional array and using integers for the keys. Think I'm going to try that approach and just have a separate function to return the dimensions since there is no ubounds. Could just catch the exception as well I suppose.

Thanks for the help, think that was my last hurdle.

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 09:53:33 -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 7FCA5182472E; Fri, 26 Jan 2007 08:53:51 -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 F290C182471E;
        Fri, 26 Jan 2007 08:53:46 -0800 (PST)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id 7B23318795F7; Fri, 26 Jan 2007 10:53:38 -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 C8E0818795EA
        for <realbasic-plugins at lists dot realsoftware dot com>;
        Fri, 26 Jan 2007 10:53:33 -0600 (CST)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id 7EA886DDFD6
        for <realbasic-plugins at lists dot realsoftware dot com>;
        Fri, 26 Jan 2007 09:53:33 -0700 (MST)
Date: Fri, 26 Jan 2007 09:53:33 -0700
From: joe at strout dot net
To: realbasic-plugins at lists dot realsoftware dot com
In-Reply-To: <915CD54D-3887-49EB-8D6B-977379EB1C8C at cahir dot net>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20070126165333 dot 7EA886DDFD6 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 16:45 UTC, Stephen A. Cochran Lists wrote:

I hadn't used Dicts before, so it didn't click that they were classes
and could be created that way.

Ah yes.  I don't know how you survived so long without them.  :)

Since Dicts hold varients, I should actually be able to make a dict that held other dicts, creating a multidimentional array and using integers for the keys. Think I'm going to try that approach and just have a separate function to return the dimensions since there is no ubounds. Could just catch the exception as well I suppose.

Dictionary.Count is equivalent to using UBound, isn't it?

Thanks for the help, think that was my last hurdle.

Glad I was able to.  Good luck with your project!

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>


From  Sat 27 Jan 2007 01:37:27 +0100
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 31A6B182CCB1; Fri, 26 Jan 2007 16:37:46 -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=-2.5 required=4.5 tests=AWL,BAYES_00 autolearn=ham version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
        by xmail.realsoftware.com (Postfix) with ESMTP id 279CE182CCA7;
        Fri, 26 Jan 2007 16:37:41 -0800 (PST)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id 3C7FC187DB01; Fri, 26 Jan 2007 18:37:33 -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 smtprelay02.ispgateway.de (smtprelay02.ispgateway.de
        [80.67.18.14])
        by lists.realsoftware.com (Postfix) with ESMTP id B0A0D187DAF3
        for <realbasic-plugins at lists dot realsoftware dot com>;
        Fri, 26 Jan 2007 18:37:29 -0600 (CST)
Received: (qmail 23675 invoked from network); 27 Jan 2007 00:37:28 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 125 dot 
146])
        (envelope-sender <support at monkeybreadsoftware dot de>)
        by smtprelay02.ispgateway.de (qmail-ldap-1.03) with SMTP
        for <realbasic-plugins at lists dot realsoftware dot com>;
        27 Jan 2007 00:37:28 -0000
To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
In-Reply-To: <20070126165333 dot 7EA886DDFD6 at mail dot verex dot com>
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Sat, 27 Jan 2007 01:37:27 +0100
Message-ID: <1hskshr dot 1a8bnyv10qksuM%support at monkeybreadsoftware dot de>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
        Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.7 (Mac OS X version 10.4.8)
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

<joe at strout dot net> wrote:

Dictionary.Count is equivalent to using UBound, isn't it?

Dictionary.Count =3D Ubound(Array) + 1

Gru=DF
Christian

--=20
Around eleven thousand functions in one REALbasic plug-in.=20
The Monkeybread Software Realbasic Plugin v6.5. Now universal!
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
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>