I'd just pad it using numberformat().  Likely, writing the loop is a
somewhat less efficient (noncompiled) way of doing what numberformat() is
doing anyway, and why reinvent the wheel?



  --Ben Doom
    Programmer & General Lackey
    Moonbow Software

: -----Original Message-----
: From: Turetsky, Seth [mailto:[EMAIL PROTECTED]]
: Sent: Friday, December 27, 2002 10:55 AM
: To: CF-Talk
: Subject: padding zeros
:
:
: I'm displaying an id, which in the long run may change length
: from say 6 digits to 7.  So to keep it standard, I want to pad a
: zero in front of the 6's.
: Would this be done with numberformat or should i grab the length
: of the id and loop spitting out the number of zero's i want?
:
: thanks,
: seth

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to