Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP is leading me to madness !!!
Message
From
22/12/2004 10:42:30
 
 
To
22/12/2004 10:13:49
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:
00971430
Views:
19
in the example I missed the "if", anyway the fact is that i get the error DataTypes mismatch when 'm not sure it is not the case !!! As i wrote before I got over it by selcting "Mytable" and set the index to 'MyIdx' before the seek. I don't know why but it works. As I told you is the very first time i got into this error...

>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