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

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Aug 4 15:30:01 CDT 2005


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") )

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




More information about the Valentina mailing list