Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can 'A'='a' be true?
Message
De
16/01/2001 01:10:10
 
 
À
16/01/2001 01:02:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00463931
Message ID:
00464089
Vues:
21
>>>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform