- My prg1.prg uses bunch of "ON ERROR do errhand" commands to perform specific functions (add accounts, items, etc. when they don't exist).
- When I "DO prg1" from the COMMAND WINDOW, the ON ERROR triggers and all is fine.
- When I "DO form1" and a button click on this form, does "DO prg1", the ON ERROR events trigger and all is fine.
- But when I "DO prg1" from another form (form2), the ON ERROR commands do NOT tigger, instead form2.error() triggers (which does not do all that needs to be done).
- Even when I "DO form1" (which has "DO prg1" in it) from from2, the ON ERROR still do not work.
Both form1 and form2 are from the same class library. I have put the same exact code in the .error() event of both forms. I can't understand why one form allows the ON ERROR on the prg1 to be triggered, and the other does not ?
I am confused!.
Would appreciate your help.