I think #numberFormat(num,"000000000")# should do the trick.
-dbk

-----Original Message-----
From: Jeff Waris [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 06, 2004 1:50 PM
To: CF-Talk
Subject: Fixed Width variable question.

Does anyone have a good technique they use to make a "fixed width"
variable to insert into a text file?

For example I have an order number, it can be 3,4,5 or 6 characters long

Lets say:
123
1234
12345
123456

...and I need to format them at 9 characters long by inserting 0's in
the
beginning:
000000123
000001234
000012345
000123456


Thanks,
Jeff




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186333
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to