Inside Coldfusion MX

"-->

LSIsCurrency (string)

Description

Checks whether a string is formatted as a specific locale currency string. Returns true if the current locale is a Eurozone country and the string is a valid currency.

Example

<cfloop index="currentLocale" list="#Server.ColdFusion.SupportedLocales#"> <cfset exampleLocale = SetLocale(currentlocale)> <cfoutput> #currentLocale# Is 60.00 a currency: #LSIsCurrency(60.00)# Is $60.00 a currency: #LSIsCurrency($60.00)# Is $1,300 a currency: #LSIsCurrency($1,300.00)# </cfoutput> </cfloop>

Категории