Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can 'A'='a' be true?
Message
De
16/01/2001 01:15:24
 
 
À
16/01/2001 01:10:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00463931
Message ID:
00464092
Vues:
16
>>>>>I would like vfp5 to be case insensitive for certain comparison operations.
>>>>>Is this possible?
>>>>
>>>>You could SET COLLATE TO "General", but that could have other detrimental side effects.
>>>
>>>The effects can be limited to that one tag. In the indexing routine, Set Collate to "General" before creating that tag, and then Set Collate to "Machine" for the other tags. Worked like charm in 2.6, and I don't expect it to have changed since.
>>
>>I suppose it should be OK as long as you remember to set it back to "Machine". I never realized that SET COLLATE effected memory variables, I always thought it was just indexes!
>
>You could also use the VBScript. RegExp object to do your searches if that kind of capability is needed; VBScript.RegExp can be told to ignore case for compares.

I really need to look into more of the scripting host stuff. Right now, we try to avoid anything that's non-standard on any of the OS's 'cause it's just too much of a PITA to deal with for our Tech Support people. "Keep It Simple Stupid" works wonders when you've got the diversity of sytems our app is installed on.

Maybe someday most all of the really neat stuff will be standard! < yeah, right > ;)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform