Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box and arrays ASORT()
Message
De
15/02/1999 17:10:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
15/02/1999 16:36:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00187807
Message ID:
00187845
Vues:
19
>Well let me tell yo the deal
>I am trying to dir a set of files in a directory and sort them in a way that
>always the newest ones are at the top of this list, then choose the newest one
>and get on with the process.. I got the sort work out but the Asort descending option is proving to be a real pain ing the be#$$^ind..
>Any suggestions
>
>Mark Oliva

Why don't you simply write a loop to copy the array backwards into another array? Like this:
dime copy_array (same as old array) 
lnn=alen(old_array,1)
for i=1 to lnn
       for j=1 to alen(old_array,2)     && this should give columns, right?
             copy_array[n+1-i, j]=old_array[i,j]
       endfor
endfor
Not the most elegant code of all times, but...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform