Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP is leading me to madness !!!
Message
From
22/12/2004 10:13:49
 
 
To
22/12/2004 03:40:54
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00971290
Message ID:
00971418
Views:
15
Hi Alessio.

=SEEK(THIS.VALUE,'MyTable','MyIdx')

SEEK() is a function that returns .T. if it finds the record and .F. it it does not. Why are you throwing away the return value? You would be much better off to amend your code as follows:
IF SEEK( This.Value, 'MyTable', 'MyIdx' )
  *** Do what you need to do if the record is found
ELSE
  *** Record not found
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform