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 = '&euro;'>
<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 = '&euro;'>
<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]

Reply via email to