Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Used() statement
Message
 
To
07/05/1997 12:12:42
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00031069
Message ID:
00031164
Views:
50
>USED() checks to see if you (the individual user) have a given alias (not disk file) open in one of your work areas. It does not check for open files on a drive or network.
>
>There are two ways to do what you want. Honestly, the prefered way is to use a third-party package like NetLib - it's the most straightforward way to deal with the problem. Another Thread member gave a solution using low level file functions, but this is not so straightforward, in my opinion, and I suspect may only indicate whether a file is opened exclusively.

FOPEN works for shared, too...whether that's good or bad depends. But it does mean that you can open exclusively if the file passes the FOPEN test.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform