CompuServe Thread

#How to count lines?

11 messages in this thread
#35544From: Gracia M. LittauerJun 24, 1993 11:55 AM
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
#35550From: Matthew J. W. RatcliffJun 24, 1993 3:11 PM
An easy way is with the amigados Type command and the numbers option.. something like: Type bugs.adpro opt num
#35558From: Gracia M. LittauerJun 24, 1993 6:42 PM
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
#35551From: ShraddhanJun 24, 1993 3:12 PM
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)
#35559From: Gracia M. LittauerJun 24, 1993 6:42 PM
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
#35575From: Bill HawesJun 25, 1993 8:15 AM
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
#35586From: Gracia M. LittauerJun 25, 1993 4:22 PM
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
#35626From: Bill HawesJun 27, 1993 10:00 PM
ARexx V1.15 is the latest version. We'll send out notices to registered users when any neweer version is released. -Bill Hawes
#35634From: Gracia M. LittauerJun 28, 1993 11:31 AM
Good to know. I'll drop you a line via snail mail with change of address in case I haven't already. Gracia
#35579From: Steve AhlstromJun 25, 1993 11:42 AM
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
#35702From: Charles BlaquiereJul 3, 1993 10:54 PM
Gracia, if you're using Ed to edit your ARexx scripts, use "ESC m" to jump directly to a certain line number. Blaq!