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
>