Hi, when an error occured, i have to go to label "poik". But in log I see this error: "Branching out of a subroutine is not recommended and may result in memory loss. Subroutines should be allowed to run to their end." Can you help me? Thanks
Let>IGNOREERRORS=1
Let>ONERROR=MyErrorHandler
Let>k=1
ReadLn>C:\P.txt,k,Line
While>Line<>##EOF##
ReadLn>C:\P.txt,k,Line
...
Label>poik
Let>k=k+1
EndWhile
SRT>MyErrorHandler
TimeStamp>C:\Log.txt,%LAST_ERROR% at %LAST_ERROR_LINE%
Goto>poik
END>MyErrorHandler
myerrorhandler problem
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: myerrorhandler problem
Change your Goto>poik to SkipLabel>poik
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?