Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to open file exclusively
Message
From
13/08/2005 07:47:50
 
 
To
13/08/2005 02:58:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01040666
Message ID:
01040678
Views:
14
i have this in my main form's load event..
>
>set exclusive off
>set multilocks on
>
>use fbc again shared in 0
>=cursorsetprop("buffering", 1, "fbc")
>sele fbc
>zap
>=cursorsetprop("buffering", 5, "fbc")
>
>
>error shows that file must be open exclusively.. what is wrong?


You opened your file SHARED. ZAP requires the file to be opened EXCLUSIVE.
If fbc is really a shared file (meaning shared by the users of the app in the LAN), then you cannot do this as every user would be attmpting to ZAP when starting their program.

What you probably want to do is to copy the fbc structure either with COPY STRUCTURE or with SELECT * FROM fbc WHERE 0=1 INTO CURSOR crsFBC READWRITE. Then you would have a local cursor (or table) in the local PC that you could ZAP and use to your liking, then post back to the server when done. This way you could have your local PC working files (temp files) used always EXCLUSIVE.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform