Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Currency Problem & ASP

Status
Not open for further replies.

jruiseco

Programmer
Oct 10, 2001
52
0
0
US
I am running an eCommerce application for an American client on a box located in the UK. The site is totally written in ASP (written by someone else).

The problem I'm having is that the box currency settings are all for English Pounds. This is not good for my American client.

Is there some ASP code I could use to alter the output of the FormatCurrency function so that it bypasses the systems settings and outputs in American Dollars ($)?
 
The previous programmer must have added the function
Code:
formatcurrency
which puts the pound sign at each currency. You should remove this function and instead use the function
Code:
formatnumber
to make your number look the way you want, plus add the dollar sign before the currency value.

for ease, make a function the does all the above, and make it the same format as the
Code:
formatcurrency
function and make a simple replace between your function name and the
Code:
formatcurrency
function.

ex:
Code:
function MyCurrency(CurrencyValue, Options ...)

Salibas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top