![MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Скачать руководство пользователя страница 482](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-cfml-language/coldfusion-4-5-cfml-language_reference_3287257482.webp)
458
CFML Language Reference
LSParseEuroCurrency
Converts a locale-specific currency string that contains the Euro symbol (
€
) or sign
(EUR) to a number. Attempts conversion through each of the three default currency
formats (none, local, international). Returns the number matching the value of string.
See, also,
LSParseCurrency
,
LSEuroCurrencyFormat
and
SetLocale
.
Syntax
LSParseEuroCurrency
(
currency-string)
currency-string
The locale-specific string you want to convert to a number.
Usage
The LSParseEuroCurrency function can read the Euro symbol (
€
) only on Euro-
enabled computers, such as Windows NT 4.0 SP4, that have Euro-enabled fonts
installed.
This function is similar to LSParseCurrency except that LSParseEuroCurrency parses
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 possible locales and
show currency values for 123,456 units.
----------------------------------------------------------->
<CFLOOP LIST="#Server.Coldfusion.SupportedLocales#"
INDEX="locale" DELIMITERS=",">
<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>
<Hr noshade>
Содержание COLDFUSION 4.5-CFML LANGUAGE
Страница 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Страница 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Страница 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Страница 296: ...272 CFMLLanguageReference INPUT TYPE text NAME number2 BR INPUT TYPE submit NAME submit VALUE Add FORM BODY HTML...
Страница 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Страница 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Страница 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Страница 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Страница 557: ...Chapter 2 ColdFusion Functions 533 P CFOUTPUT Value i is employee keysToStruct i CFOUTPUT P CFLOOP CFIF BODY HTML...
Страница 584: ...560 CFMLLanguageReference...
Страница 594: ...570 CFMLLanguageReference...