home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Utilities
/
QuickFile
/
ARexx
/
FixQuotes.quickfile
< prev
next >
Wrap
Text File
|
2000-05-26
|
547b
|
29 lines
/*
$VER: FixQuotes.quickfile 1.2 (26 May 2000 14:46:51) by M Andre Z Eckenrode
External function for QuickFile macros; replaces single- and double-quote marks
in strings to be passed to QuickFile commands with '\xxx' ASCII codes.
Requires QuickFile v3.24 or higher, and a single argument containing the string
to be modified.
Returns the modified string.
*/
str = arg(1)
q.1 = "'"
q.2 = '"'
a.1 = 9
a.2 = 4
do i = 1 to 2
q = pos(q.i,str)
do while q > 0
str = insert('03'a.i,overlay('\',str,q),q)
q = pos(q.i,str)
end
end
return str