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...