home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
tags.zip
/
tagput.frx
< prev
Wrap
Text File
|
1995-01-29
|
2KB
|
66 lines
/***************************************************************************/
/* TagLine Set */
/* Pastes a tag into the current message from the tags.tag file */
/* */
/* version 1.00 of FleetStreet and higher */
/* */
/* from Simon Ewins (1:250/664) - Version 1.0 - 01-27-95 */
/***************************************************************************/
tagfile = 'TAGS.TAG'
Call RxFuncAdd 'SysFileTree', 'RexxUtil', 'SysFileTree'
Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
Call SysLoadFuncs
r=FSCls()
count = FleetMsg.Text.0
tagtext = ''
l. = ''
do i = 1 to count
if left(FleetMsg.Text.i,3) = '---' then
do
say 'Unable to add a tag to a message with a tearline'
say ' '
say 'TagPut can only be used while editing a message. Tag lines'
say 'cannot be added to an existing message.'
exit
end
end
if stream(tagfile, 'c', 'open read') = 'READY:' then
do
i = 1
linecount = 1
do while lines(tagfile) = 1 & tagtext = ''
l.linecount = linein(tagfile)
say ' ' || right(linecount,2,'0') || ' : ' || l.linecount
linecount = linecount + 1
if linecount = 15 then
do
linecount = 1
say ''
say 'TagGet v1.0 by Simon Ewins :: Enter=Next Page, Q=Quit, ##=Select Tag'
parse upper pull action .
if left(action,1) = 'Q' then exit
if datatype(action) = 'NUM' then
do
if action > 0 & action < 15 then tagtext = l.action
end
r=FSCls()
i = i + 1
end
end
end
stream(tagfile, 'c', 'close')
count = count + 1
FleetMsg.Text.0=count
FleetMsg.Text.count=tagtext
say ' '
say FSSetText('FleetMsg.Text')
say tagtext
say ' '
say 'Tag set successfully'
exit