Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting an array by it seccond column
Message
De
15/04/2003 10:57:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/04/2003 10:51:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00777751
Message ID:
00777762
Vues:
8
>I have the next array:
>
>Dimension arreglo(2,2)
>Arreglo(1,1) = "UNO"
>Arreglo(1,2) = 1
>
>Arreglo(2,1) = "DOS"
>Arreglo(2,2) = 2
>
>
>I’d like to sort the array upon de second column descending expecting the next result:
>Arreglo(1,1) = "DOS"
>Arreglo(1,2) = 2
>
>Arreglo(2,1) = "UNO"
>Arreglo(2,2) = 3
>
>
>I’ve tried several ways according to VFP help without success.
>
>I’ll appreciate any hints.
>
>Thanks in advance.
>
>Oscar Corte

asort(arreglo,2,-1,1)
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform