August 2001
Intermediate to advanced
976 pages
38h 8m
English
LSIsCurrency
LSIsCurrency(string)Returns True if string
is a locale-specific currency string and False if
it isn’t. Here’s an example that determines whether the
given strings are locale-specific currency values for each locale:
<CFLOOP INDEX="locale" LIST="#Server.Coldfusion.SupportedLocales#">
<CFSET temp = SetLocale(locale)>
<CFOUTPUT>
<P><B>#locale#</B><BR>
99.99: #LSIsCurrency('99.99')#<BR>
$1234: #LSIsCurrency('$1234')#<BR>
$1,234,567,890: #LSIsCurrency('$1,234,567,890')#<BR>
$1234.99: #LSIsCurrency('$1234.99')#<BR>
</CFOUTPUT>
</CFLOOP>Read now
Unlock full access