Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verifying for upper
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00584529
Message ID:
00584640
Views:
34
>>>>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform