Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determin if an unopened table is used exclusive somewher
Message
From
09/07/1999 22:15:29
 
 
To
09/07/1999 22:05:24
Dennis Schuette
Customized Business Services, Llc
Yuma, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00239654
Message ID:
00239741
Views:
10
>The Low Level File Function FOPEN()returns a -1 if it cannot gain access to the file in question.
>Also, check out the documentation for other return values.
>Denis

Either way, every framework should have a custom method to do this:

llOpen=oApp.OpenExcl('mytable.dbf')

Returns True if opened succesfully or False if the file is locked.
Being as partial as I am, the on error method seems faster than opening it up low-level than closing the handle and then open with a use. I'll test this tommarow and tell you what I find.
Previous
Reply
Map
View

Click here to load this message in the networking platform