Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array sorting on 2 elements
Message
From
29/06/2006 11:26:42
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/06/2006 11:20:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01132772
Message ID:
01132779
Views:
12
>Hi,
>How to sort array on combination on third element plus first letter of second element;
>
>
>COPY to ARRAY N1 fields B_P, NAZIV, KT_BR
>_br = ALEN(N1, 1)
>ASORT(N1,3)
>
>
>I mean something like:
>
>for n = 1 to _br
>
>   now it is neccessary to add left(naziv,1) to KT_BR and at end sort again
>
>TIA
>gojko

If you're creating it from a cursor/table why not get it sorted in the first place? ie:

select B_P, NAZIV, KT_BR from myTable order by 3,1 into array aN1

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform