>Is there a way to achieve what I need?
Try this:
on convertQuote aField
aString = the text of field aField
temp = aString.char.count
quotestring = quote & " & quote & " & quote
repeat with i = temp down to 1
if char i of aString = quote then put quotestring into char i of aString
end repeat
return aString
end
put convertQuote("test")
-- "<body background=" & quote & "images/bkg.jpg" & quote & "
topmargin=" & quote & "0" & quote & " leftmargin=" & quote & "0" &
quote & " marginwidth=" & quote & "0" & quote & "
marginheight=" & quote & "0" & quote & ">"
It isn't perfect, because of the space before the topmargin and
leftmargin parts, but it might do for what you need.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]