home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / lscurrencyformat.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  771 b   |  35 lines

  1. <!--- This shows LSCurrencyFormat --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>LSCurrencyFormat Example</TITLE>
  7. </HEAD>
  8.  
  9. <BODY>
  10.  
  11. <H3>LSCurrencyFormat Example</H3>
  12.  
  13. <P>LSCurrencyFormat returns a currency value using
  14. the locale convention.  Default value is "local."
  15.  
  16. <!--- loop through a list of possible locales and
  17. show currency values for 100,000 units --->
  18. <CFLOOP LIST="#Server.Coldfusion.SupportedLocales#"
  19. INDEX="locale" DELIMITERS=",">
  20.     <CFSET oldlocale = SetLocale("#locale#")>
  21.  
  22.     <CFOUTPUT><P><B><I>#locale#</I></B><BR>
  23.         Local: #LSCurrencyFormat(100000, "local")#<BR>
  24.         International: #LSCurrencyFormat(100000, "international")#<BR>
  25.         None: #LSCurrencyFormat(100000, "none")#<BR>
  26.         <hr noshade>
  27.     </CFOUTPUT>
  28.  
  29. </CFLOOP>
  30.  
  31.  
  32.  
  33. </BODY>
  34. </HTML>       
  35.