Currency Character

Results 1 to 2 of 2

Thread: Currency Character

  1. #1
    Join Date
    Dec 1969

    Default Currency Character

    Is there a VBScript constant that returns the currency character defined in the regional settings of the server OS?<BR><BR>~ Thanks in advance!

  2. #2
    Join Date
    Dec 1969

    Default Sort of...

    If you use the FormatCurrency function, it supplies the appropriate currency symbol for you.<BR><BR>*BUT* ...<BR><BR>But it doesn&#039;t depend on the "regional settings", necessarily.<BR><BR>It is possible that the Web server is set up to use something different. <BR><BR>To be sure, you need to use Session.LCID to select the appropriate Locale, as your code needs it.<BR><BR>Finally, don&#039;t forget that currency *character* is a misnomer. *MANY* currencies use 2 or more characters, not just a single one. E.g., Spain uses (if I recall correctly) "pt" or "pta" (for "Peseta"). And Germany certainly uses DM (DeutscheMark). And whether the character(s) go on the front or rear of the number also varies.<BR><BR>So it really is safer to use FormatCurrency, anyway.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts