Use numberformat #numberformat(num1,"000000000")#
On Mon, 6 Dec 2004 13:50:01 -0500, Jeff Waris <[EMAIL PROTECTED]> wrote: > 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 Silver Sponsor - CFDynamics http://www.cfdynamics.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186334 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54