Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataEnvironment Methods?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00020842
Message ID:
00020846
Views:
29
>My first thought was that I could trap the exclusive use in the BeforeOpentables event of the DE. I have not been able to figure it out.... tia Steve

I always use a ThisForm.lExclusive property to see if I have to open my data in exclusive. I set this property to .F. for form that need to have exclusive use of the system.

In the Load() event, I have this:

IF ThisForm.lExclusive
IF NOT OpenDbf(1)
RETURN .F.
ENDIF
ENDIF

OpenDbc() is a function in my master program which will open the DBC in exclusive use. It will return .F. and show a message to the user if it can't open the DBC in exclusive mode.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform