Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching all fields
Message
 
 
À
03/11/2003 06:53:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00845549
Message ID:
00845577
Vues:
14
>if there is a way to search a word or string in all fields
>in a table.

Yes, you can do that in a number of ways. For example
SELECT mytable
SCAN
  FOR i=1 TO FCOUNT()
    IF TYPE(FILED(i)) = "C"
       IF lcSearchDFor $ EVAL(lcUserName)
         *  Found, do something
       ENDIF
    ENDIF
  ENDFOR
ENDSCAN
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform