On Tue, Nov 11, 2008 at 8:30 AM, Jeremy Keith <[EMAIL PROTECTED]>wrote:

> I'm loading a form from a cfc, one of those fields is zipcode which up here
> mostly contain a leading 0.
>
> The db object is varchar, and short of checking the string length upon
> return and padding the 0 if it's only has a lenth of 4, is there any way to
> force the struct data type to a string before it gets passed back to the
> calling page?
>

CF is typeless, so all simple values are essentially Strings.  If the
datatype in the db is varchar, you shouldn't be losing the leading 0.  You
might want to elaborate on the process you're using and identify exactly
where you're losing that 0.

-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315096
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to