Yeah... got it.

-----Original Message-----
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Tuesday, August 06, 2013 10:28 AM
To: cf-talk
Subject: Re: JSON Encoding bug (again...)


> The code testval = '.0006' makes me think a string instead of a number.
> Javacast might force a type on the string eh?

That might work, but the problem is that CF will continually
reevaluate values every time they're used - as you'd expect in a
typeless language. All you can do is force CF to treat a variable as a
specific type for the current operation. Here we have two operations:
in the first, we can tell CF to treat the struct value as a string,
but in the second that's kind of hard to do.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356401
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to