Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you asort(array1) with an UPPER?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00203480
Message ID:
00203536
Vues:
15
Hi Brenda,

>my array is a list of client input. it is in mixed case. some client use all upper case, some clients use all lower case. would like the lower and upper case letters to sort the same. is there a way to asort() UPPER?

Not with ASORT(), unless you convert all strings to upper case. But you could copy the array into a cursor (APPEND FROM ARRAY), sort the cursor and then copy the cursor back to the array (COPY TO ARRAY). It's not as slow as it sounds. :)

Christof
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform