Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Smarter access denied message.
Message
De
01/10/1998 23:14:43
 
 
À
01/10/1998 15:37:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00142967
Message ID:
00143096
Vues:
31
Hi Erik ---

You want a kludgy way? In the BeforeOpenTables event of the DE, manually open each file one by one with a small custom ON ERROR to trap which one blows, if any. Then, at the end of the method...close the tables....the DE will reopen them right after that method ends anyway.


>I would lke to build into my framework (error handler, I guess) a mechanism that givesa a meaningful error message when a form tries to open and cannot open a table in its dataenvironment. Currently, my error handler throws up the generic 'file Access is denied', but doesn't tell you which file.
>I would like to give a message that says something like
>
>"This form cannot gain access to 'mytable'. Try again later."
>
>I know this could be handled fairly easily with a programmatic dataenvironment, I just wanted to know if anyone had any ideas on how to do this without abandoning the visual DE.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform