If this is a DB2 database, you can use the DIGITS() function to add the
leading zeros.

I'm sure, by now, that someone else has given the solution, but I
thought I'd mention it anyway.

M!ke 

-----Original Message-----
From: Jeff Waris [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 03, 2004 3:50 PM
To: CF-Talk
Subject: Preserve Leading 0's question in cfoutput.

Here's an interesting one...

I have a text field in a database that contains numbers because of a
need to PRESERVE leading 0's i.e.
0001234
0123
12300

Using a regular query, pulling the numbers OUT of the database DROPS the
leading 0's in the cfoutput. Almost like cold fusion is treating it as a
number not a text field. Is there any way to preserve those leading 0's
inside a CFoutput??

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:186200
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