Yes that's the intent, but using the gosub .... keeps me from having a common error handler in the main.btm. If an error is generated in the subroutine it is not handled by the main error handler
This I believe will solve the problem that I posted subj "ON ERRORLEVEL not being trapped" on...
Add an include statement.
This will work similar to the include statement found in c++.
ie INCLUDE "c:\Library\subs.btm"
The include command tells tcc to treat the contents of a specified file as if those contents had appeared in the source batch at the point where the include appears. This...
Having a problem with ON ERRORLEVEL, I can't get it to work if the errorlevel is set when an external subroutine is called.
I created 3 files to demonstrate 1) Main.btm 2) GenerateErrorLevel.btm 3) Sub.btm, Running Main.btm shows how the errorlevel is not generated at the sub level and gets...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.