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/
