Thanks folks, both of the suggestions below worked. Why the . is in front of the 3 mystifies me - my help says its the other way around, and I never thought to apply the formatfloat function to an Integer. So Delphi is mainly but not all intuitive!

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/


Reply via email to