ColdFusion 9.0 Resources |
LSIsNumericHistoryColdFusion 8: Added the locale parameter. ColdFusion MX: Changed formatting behavior: this function might return a different result than in earlier releases. This function uses Java standard locale formatting rules on all platforms. Parameters
UsageTo set the default display format of date, time, number, and currency values, use the SetLocale function. Example<h3>LSIsNumeric Example</h3> <cfif IsDefined("FORM.locale")> <!--- if locale is defined, set locale to that entry ---> <cfset NewLocale = SetLocale(FORM.locale)> <p>Is the value "<cfoutput>#FORM.myValue#</cFOUTPUT>" a proper numeric value for <cfoutput>#GetLocale()#</cfoutput>? <p>Answer: <cfoutput>#LSIsNumeric(FORM.myValue)#</cfoutput> </cfif> <p><form action = "LSIsNumeric.cfm"> <p>Select a locale for which to check a numeric value: ... |