Sorting results the API way (was:RE: (no subject))

Jules Jacquot jules.jacquot at wanadoo.fr
Thu Aug 4 15:44:54 CDT 2005


Le 4 août 05 à 14:30, Ruslan Zasukhin a écrit :

> On 8/4/05 3:09 PM, "Sims, John" <ayu8 at cdc.gov> wrote:
>
> Thank you for help, John!
>
>
>> Jules,
>>
>> I think this will work.  This is off the top of my head and not  
>> tested.
>>
>> dim siNomprenom as VSortItem
>> dim siPayemois as VsortItem
>>
>> siNomprenom = new VSortItem("Nomprenom")
>> siPayemois = new VSortItem("Payemois")
>>
>> setAll = tblDads.SelectAllRecords()
>>
>> setAllSorted = tblDads.Sort(setAll, siNomprenom , siPayemois)
>>
>
> This can be written as short as
>
>  setAllSorted = tblDads.Sort(
>     setAll, new VSortItem("Nomprenom"), new VSortItem("Payemois") )

wonderful, that's working fine

many thanks Sims, ruslan

jules
>
>
>
>> This should return a VArraySet so make sure setAllSorted is dimmed  
>> as a
>> VArraySet.
>>
>
> right
>
>
>> I hope this works for you.  If not, I'll look at my code when I  
>> get home
>> tonight and give you an example that I know works.
>>
>
> -- 
> 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]
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
>

Réussir dans la vie,  c'est échouer au bon endroit

Jean-Baptiste de Foucauld




More information about the Valentina mailing list