Checks whether a string is a locale-specific currency string. Returns TRUE if string is a currency string, FALSE otherwise.
LSIsCurrency(string)
Parameter |
Description |
---|---|
string |
A locale-specific currency string |
<!--- This example shows LSIsCurrency ---> <html> <head> <title>LSIsCurrency Example</title> </head> <body bgcolor = silver> <H3>LSIsCurrency 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 currency value for <cfoutput>#GetLocale()#</cfoutput>? <P>Answer: <cfoutput>#LSIsCurrency(FORM.myValue)#</cfoutput> </cfif> <P> <form action = "LSIsCurrency.cfm" method = "POST"> <P>Select a locale for which you would like to check a currency value: <!--- check the current locale for server ---> <cfset serverLocale = GetLocale()> ...