Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String comparison
Message
De
29/11/1999 04:51:14
 
 
À
29/11/1999 04:31:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00296292
Message ID:
00296297
Vues:
24
>Hi,
>
>please help
>
>?'A' = 'A' Display .T.
>?'A' = 'a' Display .F.
>
>But how to make the following happen?
>?'A' = 'A' Display .T.
>?'A' = 'a' Display .T.
>
>Thank you very much.

Look at the UPPER() and LOWER() functions.
?'A' = UPPER('A')   displays .T.
?'A' = UPPER('a')   displays .T.
To handle a wider range of cases,
?UPPER('A') = UPPER('A')   displays .T.
?UPPER('A') = UPPER('a')   displays .T.
An example of LOWER():
?LOWER('A') = 'a'   displays .T.
?LOWER('A') = LOWER('a')   displays .T.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform