Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handling
Message
De
30/05/2002 00:57:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Error handling
Divers
Thread ID:
00662861
Message ID:
00662861
Vues:
45
Hi,
I have a function in prg file. It responsible to loop thru all tables of opened database and USE it exclusively. It any of them failed, it will return .F.
I place
ON ERROR llError = .T.
before I try to
USE mytable EXCLUSIVE
I have declare
LOCAL llError
My problem is, llError always is epual to .F. I found that ON ERROR will create llError as public and refer to it instead of my local llerror. Why?

To continue my work, I remove my statement LOCAL llError from the procedure. It works fine if I call it from command window. However, once I call this function from form.method, form.error() will be fired everytime if USE failed. How could I force VFP to not use ON ERROR to handle error instead of FORM.error()?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform