Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange SET COLLATE behavior
Message
From
23/03/2006 18:34:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/03/2006 16:30:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01107186
Message ID:
01107213
Views:
20
>set collate causes string comparisons to be case insensitive.
>try:
>set collate to ""
>? "M" = "m" && returns .f.
>
>set collate to "GENERAL"
>? "M" = "m" && returns .t. !
>
>However, I have not found this behavior documented...

Indeed, while I have known about this behavior for quite a while, I didn't fint it in the help (VFP 6), neither under SET EXACT nor under SET COLLATE.

Note that you can use "==" for a case-sensitive comparison.
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
Reply
Map
View

Click here to load this message in the networking platform