Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Case Sensitive
Message
 
To
01/02/2000 09:54:32
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00325543
Message ID:
00325547
Views:
23
>How can I make a search on a table field non case-sensitive?
>
>Thanks
>Kev

Kevin, try to apply UPPER() or LOWER() functions
For example:

my_search_string = UPPER("SoMeThInG")
LOCATE FOR UPPER(myfield) = my_search_string
To speed things up have an index on UPPER(myfield)

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform