The first one compiles because #20 is an escape sequence that the Delphi
compiler recognises.

However, that's not what you want.

You're wanting to replace one string with another string, not one string
with an escape sequence.  The fact that it's an escape sequence is
irrelevant from the POV of your app.  It's relevant to the mail client
tho'.

You want to do this:
        stringreplace(mailstring, ' ', '%20', [rfReplaceAll]);

HTH,

Conor

-----Original Message-----
From: Alistair George [mailto:[EMAIL PROTECTED]

Scuse ma ignorance but:
  stringreplace(mailstring,' ',#20,[rfReplaceAll]);
is ok
 but
  stringreplace(mailstring,' ',$20,[rfReplaceAll]);
or
  stringreplace(mailstring,' ',%20,[rfReplaceAll]);
Aint.
So howto?
thanks,
Al+
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to