Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New Member
Message
De
18/10/2000 06:16:32
 
 
À
18/10/2000 05:07:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00430779
Message ID:
00430785
Vues:
13
If I'm not misunderstanding....

To locate a record use locate or seek.
To display a message use WAIT WINDOW or Messagebox()

Example:

Select mytable
locate for my_field=my_value
IF FOUND()
messagebox("Found")
ELSE
messagebox("Not Found")
ENDIF

If there is an index it is advised to use seek (you need an index on the my_field column)
Select mytable
set order to my_field_index_name
seek my_value
IF FOUND()
messagebox("Found")
ELSE
messagebox("Not Found")
ENDIF


Take care with "set exact on", and upper and lower case...

HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform