Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP is leading me to madness !!!
Message
De
22/12/2004 10:42:30
 
 
À
22/12/2004 10:13:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00971290
Message ID:
00971430
Vues:
21
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
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform