Article View: news.software.readers
Article #128910[Dialog] How to replace halt ?
From: 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.
Technical Details
Message-ID:
<3f1887b4$0$8071$626a54ce@news.free.fr>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!proxad.net!proxad.net!feeder2-1.proxad.net!news3-1.free.fr!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <3f1887b4$0$8071$626a54ce@news.free.fr> Subject: [Dialog] How to replace halt ? Date: Sat, 19 Jul 2003 01:50:01 +0200 From: Alain GUERIN <news40@spamout-alain-guerin.com.invalid> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!proxad.net!proxad.net!feeder2-1.proxad.net!news3-1.free.fr!not-for-mail Newsgroups: news.software.readers MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: news40@alain-guerin.com Organization: NA X-Face: '*&f@caq/y%f)QY'BcSO`EQH}'>nCphQ%q>YfG1"zCmQAa]-,^B1-<u0)r)}QS_wzU)5`a` %|NRB0OU/Q><ozTuEx.M+[fx'?9U\Ojwtt>FBPmKGeE=.(/%Gv4+w/T9UqY}e]~jQzpXe&"V84G%al +i$O,EHjhE.c[7qzp+C4VL< User-Agent: 40tude_Dialog/2.0.5.1 Lines: 25 NNTP-Posting-Date: 19 Jul 2003 01:50:12 MEST NNTP-Posting-Host: 62.147.234.117 X-Trace: 1058572212 news3-1.free.fr 8071 62.147.234.117:1187 X-Complaints-To: abuse@proxad.net