Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Beforeopentables and returning .f.
Message
From
20/09/2004 13:36:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Beforeopentables and returning .f.
Miscellaneous
Thread ID:
00944089
Message ID:
00944089
Views:
62
Typically I open the tables manually in a form's load (close them in the form's unload) and return .f. if the tables do not exist, etc so the form never loads, but:

When autoopentables is .T. and the dataenvironment is used to open/close tables:

is there was a way to cancel the form's load if a table does not exist by checking for its existance in the beforeopentables event of the dataenvironment? I have tried this by returning .f. but it appears that the data environment still attempts to open the form and returns the failure to instantiate object error message and then fails to load the form.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Next
Reply
Map
View

Click here to load this message in the networking platform