Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why is SEEK command showing error?
Message
 
To
07/09/2004 11:35:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00939863
Message ID:
00939994
Views:
13
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform