Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can 'A'='a' be true?
Message
From
16/01/2001 01:10:10
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00463931
Message ID:
00464089
Views:
20
>>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform