arrayAppend(myArrayList2,"01011") />

The result of an addition statement is a numeric, so it will drop the
leading 0.  If you need the addition, its

<cfset mynewzip = 01011 + 7 />

<cfif len(mynewzip) LT 5>
<cfset mynewZip = "0" & mynewzip />
</cfif>

<cfset arrayAppend(myArrayList2,myNewZip) />

On 2/16/06, Jeremy Bunton <[EMAIL PROTECTED]> wrote:
> I have the code below doing this where 01011 is a zip code. So I would like
> the output to be 01018 as the appended value in the array but right now I am
> getting 1018 (leading 0 getting cut off) I tried listappend and it does the
> same thing. Val() and tostring() didn't seem to do much either. Any ideas?
>
> ArrayAppend(myArrayList2,01011+7);
>
> Jeremy
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232536
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