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 leading 0 is gone. I have the argument type set to
> >string.
> >
> ><cfargument name="last4digits" type="string">
> >
> >What do I do about this? Or what am I doing wrong?
>
> Why not just use the NumberFormat() function to ensure the padding stays
> correct?
>
> -Dan
>
>
I think the problem with that is because someone may very wll only enter in
3 digits and last thing you would want to do is pad it when really an error
should be thrown to them.

-- 
Aaron Rouse
http://www.happyhacker.com/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256761
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to