From
the help files:
Format('%8.2f',
[123.456]).
A width specifier sets the minimum field width for a conversion. If the resulting string is shorter than the minimum field width, it is padded with blanks to increase the field width. The default is to right-justify the result by adding blanks in front of the value, but if the format specifier contains a left-justification indicator (a "-" character preceding the width specifier), the result is left-justified by adding blanks after the value. The
"8" in the example is the width specifier - it only works for fixed width fonts
though as spaces aren't any good in Windows.
Depending on where you are displaying it there are a
number of options for right justifying.
Max
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of richter Sent: Friday, 31 March 2000 01:13 To: Multiple recipients of list delphi Subject: [DUG]: Display Formatting I'm doing a
format('%3.2m',[myCalculation]);
to display a result in a currency format, but i'm
getting :
US$ 3.43
US$ 112.17
US$
98.54
and wanna get the following :
US$ 3.43
US$ 112.17
US$ 98.54
how can i do this ????
Thanks in advance..
Joćo
|
- [DUG]: Display Formatting richter
- Max Renshaw-Fox