Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can Vfp sort letters before numbers?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00962818
Message ID:
00962829
Vues:
8
This message has been marked as the solution to the initial question of the thread.
Something like this:
SELECT ;
  field_name,;
  CHRTRAN(field_name,"0123456789",;
               CHR(123)+CHR(124)+CHR(125)+;
               CHR(126)+CHR(127)+CHR(128)+;
               CHR(129)+CHR(130)+chr(131)+chr(132)) ;
  FROM yy ORDER BY 2
>I want to sort character data with letters coming before numbers:
>
>AA
>A1
>A2
>BR
>BZ
>B2
>B8
>1A
>11
>12
>2A
>2B
>
>How would I go about this?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform