Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling
Message
From
30/05/2002 00:57:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Error handling
Miscellaneous
Thread ID:
00662861
Message ID:
00662861
Views:
44
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...
Next
Reply
Map
View

Click here to load this message in the networking platform