I think either of the following should work:
<cfset x = 1>
<cfset x = "0000000" & x>
OR
<cfset x = 1>
<cfset x = "0000000#x#">
Jim
-----Original Message-----
From: Bryan Rieger <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Date: Monday, March 12, 2001 5:31 PM
Subject: Number to String?
>Hello,
>
>Is it possible to convert a number to a string?
>For example, if I have the number 1 formatted as 00000001 and I wanted to
>convert that to a string "00000001" to then manipulate the '0's as
>characters. Is this possible? I can go from strings to integers, but I don't
>seem to be able to go the other way. I feel as though I'm missing something
>really basic - but I haven't found it in any reference.
>
>Any help greatly appreciated.
>
>Cheers,
>--
>Bryan Rieger
>Developer
>Trapeze Media
>
>http://www.trapeze.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists