realbasic-plugins
[Top] [All Lists]

Re: Does REALUnlockObject work on a REALobjectArray?

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Does REALUnlockObject work on a REALobjectArray?
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Mon, 30 Jan 2006 21:39:55 -0500
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <ea5840a251d79cca2705b7f4ac966092 at mac dot com> <849E1004-16A9-4F68-BA8E-564AB66858CD at realsoftware dot com> <e87d1e73e9aa8321062d259ece964a1d at mac dot com> <4CA159EC-7012-4D3E-B61B-22F99E051A91 at haranbanjo dot com> <4428b5baee037d0532d3629981ae3877 at great-white-software dot com> <9D3DF51C-D492-44E0-BCBA-D49E35890BD8 at haranbanjo dot com> <3374e0d5c70dd0dc88f836b2813a55ae at great-white-software dot com> <821950fb4d0e36400de4d4ea540a4483 at mac dot com> <81b67c1183559fa12e4f64a97af882b9 at great-white-software dot com>

On Jan 30, 2006, at 2:33 PM, Norman Palardy wrote:

MyVariant() is NOT a type
So it makes no sense

You have to use arrays of basic types (variants, objects, classes) but not an ... array of array pointers or whatever that is you're trying to get


Norm, for the last time: we want to return a REALobjectArray, which means an array of objects or an array of variants (Containing objects). (And we have proven that that would work when the C-string is declared with a Byref argument defining an array).

It is a parsing error, not a concept error:

When declaring a c-string in a REALmethodDefinition, or in a REALLoadObjectMethod, REALbasic does not parse

         "MyFunction As Variant()"

correctly, It parses it as

        "MyFunction As Variant"

If it needs to parse

         "MyFunction() As Variant()"

it sees it as

         "MyFunction( As Variant)"

This is a bug, and we are not generating an array of array pointers. Have you tried the Dictionary.Values and Dictionary.Keys methods in RB? Those are arrays that are returned, and we use that to generate a REALobjectArray, a REALstringArray or a REALIntArray in plugin code, which before the existence of these Dictionary methods couldn't be accomplished. This is progression not "whatever that is you're trying to get". Hope you now "get it",

Alfred


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