Forum Moderators: open

Message Too Old, No Replies

get a $ instead of a £

         

Andrew Thomas

12:26 pm on Dec 11, 2002 (gmt 0)

10+ Year Member



My results show a $ instead of a £

here is the code

<%= FormatCurrency((rs_products.Fields.Item("product_premier_price").Value), 2, -2, -2, -2) %>

Am i doing something wrong in the code? I've also checked the regional settings on my computer and they are set to UK setting

and ideas

Andy

korkus2000

12:52 pm on Dec 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That is based on a regional setting on the server. What does the currency tab on the regional setting say? I would hardcode the output or do a replace for a work around.

JuDDer

1:20 pm on Dec 11, 2002 (gmt 0)

10+ Year Member



You could try adding one of these to the top of your page to set the Locale ID:

<% Session.LCID = 2057 %>

Or

<%@LCID=2057%>

Andrew Thomas

1:32 pm on Dec 11, 2002 (gmt 0)

10+ Year Member



Korkus, both setting on the server and my local machine had United Kingdom setting, and currency set to £.

However

I tried what Judder said and put <% Session.LCID = 2057 %> into the code and it works fine, the only problem is that i havent a clue how this bit od code works :)

If you get time to explain it id be gratefull,

and thankyou both

Andy

korkus2000

1:36 pm on Dec 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here is some info on LCID
[msdn.microsoft.com...]