Have you looked at LSCurrencyFormat and LSEuroCurrencyFormat? I haven't
used them, but I think they might handle your needs.
HTH,
Matthieu
-----Original Message-----
From: joe velez [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 1:35 PM
To: CF-Talk
Subject: currency symbol converter
hey is there a way to convert the $ to another character. i have an app that
displays the price, but DollarFormat automatically prepends the dollar sign.
I have something like
<cfset cursym = '€'>
<cfoutput>#replace(dollarformat(price), '$', cursym, 'ALL')#</cfoutput>
i was just wondering if anyone had a better way of doing this; and what
about currencies where the symbol is at the end, or they use a comma instead
of a period to delimit dollars and cents. my replace statement is going to
get huge!
<cfset cursymbol = '€'>
<cfset curdelimiter = ','>
<cfset dsp_price = '#replace(replace(dollarformat(price), '$', cursym,
'ALL'), '.', curdelimiter, 'ALL')#'>
<cfoutput>#dsp_price#</cfoutput>
Thanks
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

