How about including the "%" as one of the parameters as a sneaky way to
achieve this?

eg Format( 'abc %s',[ '%']);

> -----Original Message-----
> From: Mark Derricutt [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, 13 October 1999 13:40
> To:   Multiple recipients of list delphi
> Subject:      [DUG]:  Escaping % in Format()
> 
> Simple question I'm sure, how does one escape the % character in a
> Format() string?  I just had a bug that I wasn't passing enough params to
> the function cause I had %s's in there that I wanted to be in the
> resultant string...
> 
> I tried escaping it with %%s but that didn't work, and I couldn't see
> anything in the helpfiles for Format() about how to escape the % char,
> help? :P
> 
> -- 
> Mark Derricutt, He that brings forth electronic life.
> Getting jiggy with Type O Negative - World Coming Down
> 
> --------------------------------------------------------------------------
> -
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to