home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
htmlkeys.zip
/
AddHtml.erx
< prev
next >
Wrap
Text File
|
1997-08-27
|
520b
|
25 lines
/*returns a string*/
PARSE ARG kase File FileText
x=0
title=''
do while x<10
line = linein(File)
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 etkinserttext '<A HREF="'FileText'">'title'</A>'