[V4REV] VTable_SortN syntax discussed.

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Jun 12 17:57:27 CDT 2005


On 6/12/05 5:34 PM, "Robert Brenstein" <rjb at robelko.com> wrote:

>> You have TableRef and some SET of records for this table.
>> You want sort this set by one or two or three or more fields.
>> 
>> In SQL we use
>>     ORDER BY f1, f2 DESC, f3, f4
>> 
>> In API we can do
>> 
>>  put VTable_SortN( t1, Set1, f1, kAsc, f2 kDesc, f3 kAsc ) into SortedSet
>> 
>> Or using strings -- style of Revolution
>> 
>>  put VTable_SortN( t1, Set1, "f1, f2 kDesc, f3" ) into SortedSet
>> 
>> 
>> In second case we have single last param,
>> and V4REV should self parse string,
>> and it looks we can avoid writing of kAsc.
>> 
> 
> What you wrote here is different than what Ivan wrote earlier. And
> from point of view of Rev, the last two function calls are different:
> the first has min 3 but unlimited number of params (well, limited by
> number of fields), the second has exactly 3 parameters.

Absolutely correct, Robert!

So what way is better for Revolution ?


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina-beta mailing list