Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange SEEK
Message
From
15/03/2009 06:40:45
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01388076
Message ID:
01388178
Views:
36
You learn something every day. :-)

>It's faster to SET ORDER in separate command. When you use ORDER clause in USE command in addition to setting order VFP also moves pointer to the first record in that order. It can take additional time.
>
>USE names
>SET ORDER TO code
>
>
>>
>>cCode="KHAN"
>>Use names order code
>>If Seek(cCode)
>>   ?yes
>>Else
>>   ?no
>>Endif
>>
>>>Hi Tore, Can please give me an example of seek() for this code :
>>>
>>>Local cCode
>>>cCode="KHAN"
>>>sele 0
>>>use invoice
>>>set order to code
>>>sele 0
>>>use names
>>>set order to code
>>>
>>>sele names
>>>seek cCode && this is what I do now
>>>if found()
>>> ?yes
>>>else
>>> ?No
>>>endif
>>>
>>>sele invoice
>>>seek cCode
>>>
>>>..
>>>..
>>>Many thanks.
>>>Shafid
Previous
Reply
Map
View

Click here to load this message in the networking platform