Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why is SEEK command showing error?
Message
De
07/09/2004 11:48:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00939863
Message ID:
00939997
Vues:
13
Oops...I hit send without typing reply :)

There is no difference between the code I posted and using the SEEK command. SET EXACT is relavent when SEEK() is called, not when FOUND() is called.

I agree that an EXACT flag for SEEK() would be nice. I don't like having to mess with SET's myself.

>>>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!
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform