home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
htmlks10.zip
/
AddHtml.erx
< prev
next >
Wrap
Text File
|
1997-09-03
|
730b
|
32 lines
/*returns a string*/
PARSE ARG kase Col theText
parse value theText with 'F_FILE='FullFile'F_TEXT='FileText'_LINE='theLine
Col=Col-1
if (Col<0) then Col=0
leftLine=left(theLine, Col)
rightLine=right(theLine, length(theLine)-Col)
x=0
title=''
do while x<10
line = linein(FullFile)
if pos('<title>', line)<>0 then do
title=right(line, length(line)-pos('<title>', line)-6)
title=left(title, pos('</title>', title)-1)
leave
end /*<title>do */
else if pos('<TITLE>', line)<>0 then do
title=right(line, length(line)-pos('<TITLE>', line)-6)
title=left(title, pos('</TITLE>', title)-1)
leave
end /*<TITLE>do*/
x=x+1
end
call etkreplacetext leftLine'<A HREF="'FileText'">'title'</A>'rightLine