NumberFormat(01011+7,"0")
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 16, 2006 3:21 PM
To: CF-Talk
Subject: Re: ArrayAppend oddity
put the value in quotes?
arrayAppend(myArrayList2, '01011')
On 2/16/06, J
put the value in quotes?
arrayAppend(myArrayList2, '01011')
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 g
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
Yeah I like that one best, I did the length check, but that seems alittle
much.
Jeremy
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 16, 2006 2:50 PM
To: CF-Talk
Subject: Re: ArrayAppend oddity
Or just use numberFormat(01011+7, "0
> Or just use numberFormat(01011+7, "0") in your expression
> to repad the athimetic result with zeros.
Yeah, that's a much better solution than mine.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at o
Or just use numberFormat(01011+7, "0") in your expression to repad
the athimetic result with zeros.
cheers,
barneyb
On 2/16/06, Dave Watts <[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 valu
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
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 out
> 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
8 matches
Mail list logo