Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange SET COLLATE behavior
Message
De
23/03/2006 18:34:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
23/03/2006 16:30:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01107186
Message ID:
01107213
Vues:
21
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform