V4RB, syntax for sorting of sets.
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Oct 6 20:30:17 CDT 2004
On 10/6/04 7:56 PM, "Charles Yeomans" <yeomans at desuetude.com> wrote:
Hi Charles,
>> REALbasic do not allow functions with variable number of parameters.
>
> But it does. The ParamArray keyword was added to Rb 5.5. You declare a
> method like so --
>
> Sub Sort(ParamArray sortPairs as VSortPair)
>
> You then call it in code as follows.
>
> Sort sortPair1, sortPair2, ..., sortPairN
Probably
Sort( new sortPair1, new sortPair2, ..., new sortPairN )
Right?
> sortPairs is passed into the method as an Rb array containing the
> elements sortPair1, ..., sortPairN. I don't know how this works from
> the plugin standpoint, but I am sure that you can figure it out.
Interesting. Thank you for point.
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina-beta
mailing list