Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verifying for upper
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00584529
Message ID:
00584640
Vues:
36
>>>>What would be the fastest way to verify for all upper casing characters within a string? For example, I would like to detect when that happens "THISISMYTEST" but not this "THISISMyTest".
>>>
>>>
lcStr = "THISISMyTest"
>>>IF lcStr = UPPER(lcStr )
>>>  * Uppercase
>>>ENDIF
>>>
>>
>>For a while, I thought it was more complicated than what is is. <s>
>
>Use the double == for this test...
>It will work on all SET EXACT settings.

In this case it doesn't make any difference because we're comparing strings of the same length..
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform