#How to count lines?
11 messages in this thread
Dumb question. How do I know which line is "22" in an Arexx program? Where
do I start counting? Do you count empty lines. Trying to fix an ADPro rexx
program without too much knowledge of Arexx & a manual in hand.
Gracia
An easy way is with the amigados Type command and the numbers option..
something like: Type bugs.adpro opt num
Thanks, I learned a LOT about Arexx in trying to figure out why an ADPro
program didn't work. The C= manual is very little help, must get a real
book. I did get to the interactive part and finally discovered my dumb
mistake.
Gracia
Line 22 is counted starting with the first (top) line as 1, then counting
down 2, 3, 4 etc, regardless of whether there is anything on any of the
lines.
Why not get yourself a text editor that shows line numbers? They're
handy!
Regards,
Shraddhan (via AP at last from Hertfordshire, England)
Thanks, when I finally figured out how to work it interactively it did a
line at a time with numbers & I discovered my dumb mistake (so dumb I
won't tell <G>). C= manual is the pits, need a real book.
Gracia
Gracia,
Whenever you're developing a new ARexx program, I'd recommend that you include
a TRACE R instruction near the beginning of the program. It's so much easier
th find mistakes with the REXX tracing turned on, and you can remove the
instruction once everything is working OK.
-Bill Hawes
Bill,
Not up to developing yet, just trying to figure out ADPro Arexx program.
But I intend to work on learning & using Arexx. BTW, dumb question #2, I
own Arexx from you & have it on my OS3.0. Which is the latest version? The
last update I received from you was 1.15.
Gracia
ARexx V1.15 is the latest version. We'll send out notices to registered users
when any neweer version is released.
-Bill Hawes
Good to know. I'll drop you a line via snail mail with change of address
in case I haven't already.
Gracia
Gracia,
Count carriage returns (starting with 1). When you get to the 22nd
carriage return, the text to the left of it is the problem.
-sja
Gracia,
if you're using Ed to edit your ARexx scripts, use "ESC m" to jump directly
to a certain line number.
Blaq!