Re: Why does CF remove my leading 0's??

2006-10-13 Thread Aaron Rouse
On 10/13/06, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: > > Will, > > >This is driving me nuts! > > > >No matter what I do, CF gets rid of a much-needed leading 0 in the last 4 > >digits of a CC #. > > > >The variable looks good before sending it into a CFC, then I dump the > >arguments, and the

RE: Why does CF remove my leading 0's??

2006-10-13 Thread Dan G. Switzer, II
Will, >This is driving me nuts! > >No matter what I do, CF gets rid of a much-needed leading 0 in the last 4 >digits of a CC #. > >The variable looks good before sending it into a CFC, then I dump the >arguments, and the leading 0 is gone. I have the argument type set to >string. > > > >What do I

Re: Why does CF remove my leading 0''''s??

2006-10-13 Thread Aaron Rouse
Lets see more of your code then, because it is not happening for me in a simple test: #Arguments.lastdigits# Test = #Test('0234')#Test = #Test(0234)# Or with: Test = #Test('0234')#Test = #Test(0234)# On 10/13/06, Will Tomlinson <[EMAIL PROTECTED]> wrote: > > >Better yet a cfqueryparam

RE: Why does CF remove my leading 0''''s??

2006-10-13 Thread Brad Wood
Then show us the code that passes the variable into the CFC. ~Brad I have the argument set to string. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your p

Re: Why does CF remove my leading 0''''s??

2006-10-13 Thread Will Tomlinson
>What does your CFC look like, are you declaring the variable properly? >Such as: > > I had it set to an integer, but switched to see if a string would work Will ~| Introducing the Fusion Authority Quarterly Update. 80 page

Re: Why does CF remove my leading 0''''s??

2006-10-13 Thread Will Tomlinson
>Better yet a cfqueryparam should just be used with a type of varchar. > >On 10/14/06, Josh Nathanson <[EMAIL PROTECTED]> wrote: Ok, forget about the db for a minute. The problem is further up the creek is what I'm trying to say here. Just do a dump of the arguments and CF has already removed

Re: Why does CF remove my leading 0''s??

2006-10-13 Thread Aaron Rouse
rm.ccfield# > > I think if you do the first, it should save your 0. If you do the second, > CF thinks it's not a string. > > -- Josh > > > - Original Message - > From: "Will Tomlinson" <[EMAIL PROTECTED]> > To: "CF-Talk&

Re: Why does CF remove my leading 0''s??

2006-10-13 Thread Josh Nathanson
-- From: "Will Tomlinson" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Friday, October 13, 2006 10:50 AM Subject: Re: Why does CF remove my leading 0''s?? > >Depending on the data type of the variable / database field, it will. >>If the field is set top numb

Re: Why does CF remove my leading 0's??

2006-10-13 Thread Teddy Payne
--- > From: Will Tomlinson [mailto:[EMAIL PROTECTED] > Sent: Friday, October 13, 2006 1:39 PM > To: CF-Talk > Subject: Why does CF remove my leading 0's?? > > This is driving me nuts! > > No matter what I do, CF gets rid of a much-needed leading 0 in the last > 4 digi

RE: Why does CF remove my leading 0''s??

2006-10-13 Thread Adkins, Randy
What does your CFC look like, are you declaring the variable properly? Such as: -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 1:51 PM To: CF-Talk Subject: Re: Why does CF remove my leading 0''s?? >Depending on the

Re: Why does CF remove my leading 0''s??

2006-10-13 Thread Will Tomlinson
>Depending on the data type of the variable / database field, it will. >If the field is set top number or integer, all leading 0s will be >dropped. >The DB field will need to be CHAR or VARCHAR So is the solution to check for the len()? If it's 3, add a 0 back to it? Sounds like a goofy solution

RE: Why does CF remove my leading 0's??

2006-10-13 Thread Adkins, Randy
1:39 PM To: CF-Talk Subject: Why does CF remove my leading 0's?? This is driving me nuts! No matter what I do, CF gets rid of a much-needed leading 0 in the last 4 digits of a CC #. The variable looks good before sending it into a CFC, then I dump the arguments, and the leading 0 is go

Why does CF remove my leading 0's??

2006-10-13 Thread Will Tomlinson
This is driving me nuts! No matter what I do, CF gets rid of a much-needed leading 0 in the last 4 digits of a CC #. The variable looks good before sending it into a CFC, then I dump the arguments, and the leading 0 is gone. I have the argument type set to string. What do I do about this?