Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding a String of Characters in ANY Field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00265873
Message ID:
00265986
Views:
13
>Any such thing in the FoxPro Command Language that works like Edit > Find (where it will find a string of characters, no matter what field they're in)???
A command I have used successfully in the past is:
SELECT * FROM sometable WHERE ATC('sometext',field1 + field2 + field3 + ...) > 0
This only makes sense if the specified fields are of type character. I use ATC rather than the $ operator if my comparison is not case sensitive. It can be adjusted as necessary.
Previous
Reply
Map
View

Click here to load this message in the networking platform