[V4MD] RecordsSort - API example

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jun 23 09:28:20 CDT 2005


On 6/23/05 1:07 AM, "info at vallemediatime.com" <info at vallemediatime.com>
wrote:

> Hi Ruslan,
> 
> I've tried the API\RecordsSort, this line works automatically in ASC mode:
> sortedSet = person.sort(setAll, person.field("fld_Long"))
> 
> but if I want to sort in DESC mode, how can do it, with same behaviour (not
> with sortMultiple method)

Hi Paolo,

I see in the msg table"

   "sort object me, object selSet, object field, *
            -- [symbol order = #kAsc]\n"
    
-- Executes sorting of a table selection inSet by the field Field.\n"


So you need 

    sortedSet = person.sort( setAll, person.field("fld_Long"), #kDesc )


-- 
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 mailing list