home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
504a.lha
/
hypertext
/
Rexx
/
do_link.dme
< prev
next >
Wrap
Text File
|
1991-05-01
|
1KB
|
39 lines
/* this is the *main* DME macro for use with HT */
/* this line makes sure we get back a STRING from our main link macro */
options results
address
/* this is where the *real* work is done (inside of link.rexx) */
link_string = link.rexx()
/* put back all options to defaults so as not to confuse DME */
options
/* if link_string is empty, user must have canceled requestor, so just
* exit outta here
*/
if link_string = "" then
exit
address
/* pop back to the original spot set when you pressed alt-s in DME */
/* then insert the link text */
pong 8
'(\\'link_string' )'
/* now pop back to the final position. However, things are different
* in the buffer now because we inserted that text above. Therefore
* we need to go right that many spaces. Then insert the \endlink
* keyword.
*/
pong 9
do length(link_string)+1
/* ctrl-alt-shift-numeric keypad 6 is a magic macro for moving around */
"cas-nk6"
end
/* insert the endlink command to finish up. */
'(\\endlink )'