Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you asort(array1) with an UPPER?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00203480
Message ID:
00203536
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform