If I have the script called "mainscript" that calls a module, another script "mymodule", like this:
<uses mymodule>
<a name=main>
...
<mymodule>
...
It appears that I can't use PUTMSG setting nor putmsg error handler in "mymodule"???
When I tried to include <PUTMSG print off> in "mymodule", compiler reported the error, that setting can't be used in modules.
Also if I define the <a name=putmsg> function in "mymodule", apparently the execution never goes there.
How can I catch the errors in "mymodule"?
Obviously I have the reason to do it there, because as the name indicates, that is where I can write some custom code, while "mainscript" is not "mine".
thank you all
<uses mymodule>
<a name=main>
...
<mymodule>
...
It appears that I can't use PUTMSG setting nor putmsg error handler in "mymodule"???
When I tried to include <PUTMSG print off> in "mymodule", compiler reported the error, that setting can't be used in modules.
Also if I define the <a name=putmsg> function in "mymodule", apparently the execution never goes there.
How can I catch the errors in "mymodule"?
Obviously I have the reason to do it there, because as the name indicates, that is where I can write some custom code, while "mainscript" is not "mine".
thank you all