Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verifying for upper
Message
From
21/11/2001 14:19:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00584529
Message ID:
00584643
Views:
31
>>>IF lcStr = UPPER(lcStr )
...
>Use the double == for this test...
>It will work on all SET EXACT settings.

I think SET EXACT is irrelevant in this specific example, because the strings have the same length.

I do agree that == is better, but for another reason: collation sequences.
set collate to "general"
? "abc" = "ABC" && .T.
? "abc" == "ABC" && .F.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform