Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Beforeopentables and returning .f.
Message
De
20/09/2004 13:36:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Beforeopentables and returning .f.
Divers
Thread ID:
00944089
Message ID:
00944089
Vues:
61
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"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform