home *** CD-ROM | disk | FTP | other *** search
- /** --------------------------------------------
- ** ARexx program number all the lines of a text
- ** --------------------------------------------
- ** AREXX-Programm, das alle Zeilen nummeriert
- ** --------------------------------------------
- **
- ** © Tom Kroener 1992
- **/
-
-
- options results
-
- address 'TKEd.1' /* Name of TKEd's port */
-
- SIGNAL ON BREAK_C
- LastLine /* Get number of the last line in a text */
- x=result
-
- BeginOfFile /* Go to the top of the text */
-
- GetLineNr /* Get linenumber */
- y=result
-
- do while y < x
- BeginOfLine
-
- WriteString y /* Write number */
- WriteString ": " /* Write ': ' */
-
- Cursor "DOWN"
-
- GetLineNr /* Get linenumber */
- y=result
-
- end
-
- BeginOfLine
-
- WriteString y /* Write number */
- WriteString ": " /* Write ': ' */
-
- BREAK_C:
-