Hey Al. I just remembered, I have a function called URLEncode which will 
do this for you.
I can send it to you if you want. The good thing with it is, if your 
string had other chars like #'s, &'s etc.etc. it will replace these with 
the right values for HTML etc. as well.

Jeremy

-----Original Message-----
From: Alistair George <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Mon, 4 Aug 2003 13:36:45 +1200
Subject: [DUG]:  OK, the boys are on the beers

> This does it:
>   NewString:='';
>   For i:=1 to length(mailstring) do
>   if mailstring[i]=' ' then NewString:=NewString+'%20' else
> NewString:=Newstring+Mailstring[i];
>  //use the old bugger
>   Mailstring:=NewString;
>   ShellExecute(Application.Handle, nil,pchar(Mailstring),nil,nil,
> SW_SHOWNOACTIVATE);
> 
> -----------------------------------------------------------------------
> ----
>     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/

---------------------------------------------------------------------------
    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