CF is typeless (or it tries to be) and there shouldn't be a difference.
What you may be looking for is the Val() function, which converts a string
to numeric value by taking the first number it finds.  For example Val("219
West 43rd St") returns 219.

Jim


----- Original Message -----
From: "Richard Banks" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 2:53 PM
Subject: String to Int


> is there a way [ie. a cf function ]to convert a string to an integer.
let's
> say a user enters the string '1976' , and i want to process that string as
> the integer 1976.
> any help would be greatly appreciated. thanks


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to