Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dataenvironment
Message
From
30/12/2003 16:51:35
 
 
To
30/12/2003 16:29:09
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00862976
Message ID:
00862981
Views:
15
>I'm looking for the most simple and clean way to handle the error's that occurs when the dataenvironment try's to open tables that are in exclusive use by other users.
>For simple programs i don't want that forms load when one or more table's are in exclusive use by other users.
>Someone a great idee..??

Create a property on your form (let's call it FileFailed). In the Error method of your DataEnvironment, you can put "thisform.FileFailed = .T.", and in the Load method of the form, you can:

IF thisform.FileFailed
MESSAGEBOX("File failure!")
RETURN .F.
ENDIF
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform