Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem in Using USED()
Message
From
15/10/2001 17:16:13
 
 
To
15/10/2001 16:50:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00568793
Message ID:
00568810
Views:
24
Ravindra-

> IT SAYS 'FILE IS IN USE'. So now how do I know that file is already opened. Now suppose I will make use of USED() function.

You can tell by using the low level file function FOPEN(). Something like

lcDBF = "C:\SomePath\SomeDBF.DBF"
lnHandle = FOPEN(lcDBF, 11)

if lnHandle = -1 then it's in use. You'll need to FCLOSE the handle before you can use it. If the app is hitting data really hard then you *might* see the table used between the time you FCLOSE and then USE the file, but there would be strategies for manaaging that, too.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform