Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to search for records containing the search string?
Message
From
17/03/2004 06:19:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
17/03/2004 03:37:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00886980
Message ID:
00887009
Views:
12
>how to search for records containing the search string?
>
>say, my user entered "ELL", i want to be able to search into my table all records that contains the word "ELL" like "HELLO", "BELL", "SELLER"
>
>
select * from where like="%ELL%"
>
>can i do this using locate? i want to search in the same table, not to put the result in a table or a cursor.
>
>any help pls?
SET FILTER TO "ELL" $ MyField

or:

SET FILTER TO "ELL" $ upper(MyField)
This can be slow, since no indexes can be used to optimize this filter.
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform