home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
626a.lha
/
TKEd_v1.00
/
Rexx
/
makenumber.tked
Wrap
Text File
|
1992-02-13
|
625b
|
36 lines
/* ARexx program number all the line of a text */
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 */
'GetLineNumber' /* Get linenumber */
y=result
do while y < x
'BeginOfLine'
'WriteString' y /* Write number */
'WriteString :' /* Write ': ' */
'Cursor' "down"
'GetLineNumber' /* Get linenumber */
y=result
end
'BeginOfLine'
'WriteString' y /* Write number */
'WriteString ": "' /* Write ': ' */
BREAK_C: