home *** CD-ROM | disk | FTP | other *** search
- Path: inferno.mpx.com.au!jolt!nring
- From: nring@jolt.mpx.com.au (Nick Ring)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: How to get right SIGL with 'rx script' ?
- Date: 21 Jan 1996 19:15:50 GMT
- Organization: Microplex Pty Ltd
- Message-ID: <4du3d6$8mu@inferno.mpx.com.au>
- References: <68771172@0humpty.tomate.tng.oche.de>
- NNTP-Posting-Host: jolt.mpx.com.au
- X-Newsreader: TIN [version 1.2 PL2]
-
- Andreas Mixich (humpty@TOMATE.TNG.OCHE.DE) wrote:
-
- : Hi,
-
- : I use to have a hotkey in my texteditor which runs the current arexx-script
- : I am editing. The docname will be queried from the ed, the script saved
- : with a temp_name in t: and execute from there. This is an Arexx macro
- : itself. It works fine. Now I was trying to do this:
-
- : on error,failure,syntax etc:
- : goto line SIGL
-
- : This way I could be brought to the line where the error occured, similare
- : to integrated compilers.
-
- With ARexx, you use
-
- Signal on <condition>
-
- Where <condition> can be : BREAK_C, BREAK_D, BREAK_E, BREAK_F, ERROR,
- HALT, IOERR, NOVALUE, or SYNTAX.
-
- And somewhere in your script, you define the error conditions with
-
- <condition>:
-
- ie
-
- ERROR:
- ...
- <code to handle ERROR>
- ...
-
- for more info, get the ARexxGuide from AmiNet.
-
- : Well, the problem is, that I start the temp file using
- : ADDRESS COMMAND 'rx t:temp_file'. I may get a
-
- : +++error 5 in line 456: Unmatched quote.
-
- : but the command returns to the Arexx macro it was executed from with a
- : different SIGL (of course), something like
-
- : error in line 27, label not found.
-
- : Line 27 is ADDRESS COMMAND 'rx t:temp_file'
-
- : Have you any ideas how to parse the first error line ?
-
- I hope this helps
-
- nick
-