realbasic-nug
[Top] [All Lists]

Re: method parameter as array

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: method parameter as array
From: Tony Alfrey <tonyalfrey@earthlink.net>
Date: Thu, 29 Jan 2009 11:53:19 -0800
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; domainkeys=hardfail (test mode) header.From=tonyalfrey@earthlink.net
Delivered-to: listarchive@realsoftware.com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=ronilwIT8TyRMr07x1Jc3HezCiD9R/qnSofg0iz+3/Gl4HiN0rW6tkOedgLG1D9V; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP;
Domainkey-status: bad (test mode)
In-reply-to: <49820677.5050605@earthlink.net>
References: <49820316.6090503@earthlink.net> <89fe53800901291133i3e8f2278t2c91ca5e30a0e077@mail.gmail.com> <49820677.5050605@earthlink.net>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)
Tony Alfrey wrote:
Thomas Tempelmann wrote:
I have tried
Sub Method_Name(A(10,10) as double, other_parameter as integer,
  another_parameter as double)
but this fails.

Try "(,)", i.e. without the numbers

Whoa!  That compiles.  We'll see if it passes the array a little later.
Thanks very much!


Another question please:
Where does the array get dimensioned, in other words, at what point does memory get allocated? I suppose maybe it is allocated when the array is dimensioned in the code that calls the method? And if this is the case, it sounds like that the array must be re-dimensioned prior to calling the method?
Thanks.


--
Tony Alfrey
tonyalfrey@earthlink.net
"I'd Rather Be Sailing"

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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