534
LSParseEuroCurrency
Description
Converts a locale-specific currency string that contains the Euro symbol ( ) or sign
(EUR) to a number. Attempts conversion through each of the default currency
formats (none, local, international). Returns the number that matches the value of
string.
Category
International functions
LSParseEuroCurrency(currency-string)
Syntax
See also
LSParseCurrency, LSEuroCurrencyFormat,
Parameters
Parameter
currency-string
The
Usage
Euro-enabled computers that have Euro-enabled fonts installed.
This function is similar to
only the Euro currency symbol ( ) or the international Euro sign (EUR), not other
currency symbols, such as the dollar sign ($) or the pound sign (
Example
<!--- This example shows LSParseEuroCurrency --->
<html>
<head>
<title>LSParseEuroCurrency Example</title>
</head>
<body>
<H3>LSParseEuroCurrency Example</H3>
<P>LSParseEuroCurrency converts a locale-specific currency
string to a number. Attempts conversion through each of
the three default currency formats.
<!---------------------------------------------------------
Loop through a list of locales and
show currency values for 123,456 units.
----------------------------------------------------------->
<CFLOOP LIST = "#Server.Coldfusion.SupportedLocales#"
INDEX = "locale" DELIMITERS = ",">
Description
The locale-specific string to convert to a number
LSParseEuroCurrency
<cfset oldlocale = SetLocale("#locale#")>
<cfoutput><P><B><I>#locale#</I></B><BR>
Local: #LSEuroCurrencyFormat(123456, "local")#<BR>
Currency Number:
#LSParseEuroCurrency("EUR123456")#<BR>
International: #LSEuroCurrencyFormat(123456, "international")#<BR>
None: #LSEuroCurrencyFormat(123456, "none")#<BR>
function can read the Euro symbol ( ) only on
, except
LSParseCurrency
Chapter 3 ColdFusion Functions
SetLocale
LSParseEuroCurrency
£).
parses
Need help?
Do you have a question about the COLDFUSION 5 - CFML and is the answer not in the manual?