Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic USE stuff
Message
From
05/05/2009 16:35:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01397676
Message ID:
01398022
Views:
47
>>Hi All:
>>
>>How can I test if a table is opened exclusive or shared?
>
>TRY
>   USE YourTable SHARED 
>   MESSAGEBOX([The table is opened shared])
>CATCH
>   MESSAGEBOX([The table is opened exclusive])
>ENDTRY
>
>
>>
>>How can I change it from exclusive to shared? If I execute a USE mytable SHARED command, I will cancel a previous SET ORDER TO command, which I do not want to do.
>
>SELECT ExclTable
>lcOrder = TAG()
>lnRecno = RECNO()
>USE ExclTable SHARED 
>SET ORDER TO (m.lcOrder)
>GOTO m.lnRecno
>
>>Thanks,
>>
>>Yossi

Thanks, I'll use the code!
Previous
Reply
Map
View

Click here to load this message in the networking platform