Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to search word in MEMO
Message
 
 
To
08/03/2002 09:07:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00630133
Message ID:
00630135
Views:
24
>Hello everyone,
>
>How can I search in the MEMO field a word or combined word like :
>Visual+Foxpro and will display every records in the table that have
>Visual Foxpro ?
>
>Any suggestions of coding would be really appreciated .
>
>Thanks in advance,
>Paul
lcWord1 = "VISUAL"
lcWord2 = "FOXPRO"
SELECT * FROM mytable ;
  WHERE lcWord1 $ UPPER( memofield1) ;
    OR lcWord2 $ UPPER( memofield1) ;
  INTO CURSOR crsResult
If you want case sensitive search than remove UPPER() function and specify lcWordN in the proper case. This query could be quite slow on big tables.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform