RE: ArrayAppend oddity

2006-02-16 Thread Dave Francis
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

Re: ArrayAppend oddity

2006-02-16 Thread Charlie Griefer
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

RE: ArrayAppend oddity

2006-02-16 Thread Ian Skinner
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

RE: ArrayAppend oddity

2006-02-16 Thread Jeremy Bunton
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

RE: ArrayAppend oddity

2006-02-16 Thread Dave Watts
> 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

Re: ArrayAppend oddity

2006-02-16 Thread Barney Boisvert
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

Re: ArrayAppend oddity

2006-02-16 Thread Ryan Guill
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

RE: ArrayAppend oddity

2006-02-16 Thread Dave Watts
> 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