Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why is SEEK command showing error?
Message
 
À
07/09/2004 11:35:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00939863
Message ID:
00939994
Vues:
14
>>I agree - but with the function, I would have to "SET EXACT ON" twice!
>
>Why twice?
>
>
>=seek(cvar, "mydbf", "mytag")
>set exact on
>if found("mydbf")
>   ....
>endif
>
Here's one reason why:
set exact off
if found()
   set exact on
   .... do code that requires exact on
else
   set exact on && return EXAXT to 'system' state
endif
I have oftened hoped that MS would give us an 'EXACT' switch in the SEEK() function that would revert to the SET EXACT state after the function completed. They havent - but - and this is a surprise - is that MS has added a bunch of features to core xBase! My 'set-in-my-ways' apprach had condemned me to re-using old libraries - I bnever even thought to check VFP xBase for enhancements - until last night. I was warm and fuzzy all over!
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform