I hate it when I butcher my Mother Tongue... ugh. > Sometimes the loose typing of CF conflicts with other languages that > have more stringent typing requirements. Int() effectively casts your > value as a a numerical datatype. It's not uncommong for a a CF > "numerical" value is being seen as a string by other > languages/environments.
SHOULD read: Sometimes the loose typing of CF conflicts with other languages that have more stringent data typing requirements. Int() validates what's passed to it as a number... it's the first thing that comes to mind, anyway. It's not UNCOMMON for a CF "numerical" value to be seen as a string by another language or environment where the recipient requires tighter typing. Something that's important to remember though... if you declare a variable like this: <cfset myInt = ""> CF is going to remember that as a string, regardless of it's content. However, declaring a variable like this: <cfset myInt = 0> Will cause CF to treat this variable as natively numeric, rather than a string value that contains a number. That would be my first suggestion... make sure that you treat that value as numeric from the get-go, which means never wrapping it in quotes and only assigning number values to it. I just re-read the livedocs on the Int() function and it returns a number as a string... so that probably won't help. JavaCast returns a typed Java value... hmmm... might work, it's worth a try. I'm sure there's someone around who can provide a better answer... I've not worked with COM objects much at all, so it's not an issue I've run across before now. Laterz, J -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://cfobjective.neo.servequake.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198562 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

