Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to search word in MEMO
Message
 
 
À
08/03/2002 09:07:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00630133
Message ID:
00630135
Vues:
25
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform