Why not try this <cfset var = "Input1"> <cfoutput>#Val(var)#</cfoutput>
Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andrew Dickinson Sent: Monday, August 18, 2003 4:06 PM To: CFAussie Mailing List Subject: [cfaussie] IsNumeric limitations ? I tried this code just now, and it does the opposite of what one would expect. <CFIF NOT IsNumeric("Input1")><CFSET Input1 = '0'></CFIF> #Input1# Input1 is text, and comes in through a javascript prompt. The idea is to set to zero any input which isn't a number. But both numbers and text always produces #Input1# as zero. Have I come up against some sort of limitation of the IsNumeric function ? If so, is there another straightforward method of performing an IsNumeric test ? --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
