Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple use on the same table
Message
From
27/05/2005 11:47:41
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01017912
Message ID:
01018169
Views:
12
A couple of things to check...

- A form will use a private data session and reset SET EXCLUSIVE to default (ON). Make sure you set it again before the tables...and the database...are opened in the form

- Use the AGAIN clause
USE S:\mytable.dbf AGAIN IN 0 ALIAS test2 SHARED


>Hi all,
>
>I have a problem using several time the same table in my form...
>
>SET EXCLUSIVE is OFF
>
>I have the following code
>
>
USE S:\mytable.dbf IN 0 ALIAS test1 SHARED
>.....
>....
>...
>USE S:\mytable.dbf IN 0 ALIAS test2 SHARED
>
>when I open a second time my table, I get a "File is in use" error. I tried to use the "AGAIN", it worked but when using it, my app doesn't seems to update the datas when another application change them.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform