Thread View: news.software.readers
1 messages
1 total messages
Started by Alain GUERIN
Fri, 18 Jul 2003 23:50
[Dialog] How to replace halt ?
Author: Alain GUERIN
Date: Fri, 18 Jul 2003 23:50
Date: Fri, 18 Jul 2003 23:50
26 lines
2003 bytes
2003 bytes
Hello,
In scripts, 'halt' is not recognize by the compiler ( Unknown identifier
'halt').
I cannot replace it with label and goto, as it is not allowed to jump from
inside a procedure to go near the end of the program (just before the
finally closes).
I try to raise an erCustomError exception, but it does no more than exit.
The same with erException.
I did not find a way to propagate one of these exceptions from the
procedure to the main program with RaiseLastException.
When used in the procedure except part, the program crashes and just after
the procedure calling RaiseLastException does not break the program as, at
that level, the LastException is ErNoError and more, my exception param
message ('Stop by user') is lost.
Even Google is not friendly :-/
Any suggestion ?
--
A.G.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads