LSIsCurrency

Checks whether a string is a locale-specific currency string. Returns TRUE if string is a currency string, FALSE otherwise.

Syntax

LSIsCurrency(string)
string

The locale-specific currency string.

Example

<!--- 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()>
...



1