At 07:04 PM 27/01/03 +1300, you wrote:

From Delphi help about format strings

"%" [index ":"] ["-"] [width] [
"." prec] type

d       Decimal. The argument must be an integer value. The value is converted to a string of decimal digits. If the format string contains a
precision specifier, it indicates that the resulting string must contain at least the specified number of digits; if the value has less digits, the resulting string is left-padded with zeros.

Reads pretty clearly to me.
:-)


Exactly, it says prec after the size - %3.d  which is what I tried and didn't work!

>You need 3 after the decimal point try
>format('%.3d',[TNMBR])

ATNMBR = FormatFloat("000", TNMBR);





John Bird
Beyond Data Systems
[EMAIL PROTECTED]
Ph 64-3-3654656 or 027 436-7702
Fax 03-3793340

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


John Bird
Beyond Data Systems
[EMAIL PROTECTED]
Ph 64-3-3654656 or 027 436-7702
Fax 03-3793340

Reply via email to