Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New Member
Message
From
18/10/2000 06:16:32
 
 
To
18/10/2000 05:07:45
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00430779
Message ID:
00430785
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform