V4RB, syntax for sorting of sets.

Charles Yeomans yeomans at desuetude.com
Wed Oct 6 13:56:54 CDT 2004


On Oct 6, 2004, at 1:30 PM, Ruslan Zasukhin wrote:

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

You don't need the parentheses.  Rb is much better than it used to be 
about such things.

Charles Yeomans



More information about the Valentina-beta mailing list