| 1. |
Solve : VBS and JScript bug & how to fix it? |
|
Answer» Dusty and I are collaborating on an FAQ for doing floating-point arithmetic using the Evaluate.vbs script I posted some weeks ago. Among the VBS functions this can access is one CALLED FormatCurrency. This takes a value and displays it as a currency value, i.e. the local currency symbol as defined in Control Panel, that is, $ (dollar) £ (pound), € (EURO) etc, followed by the value expressed with 2 decimal places. Although my local currency is the UK pound, I could only get values showing with a dollar sign. A Google search reveals that this is a known problem, and AFFECTS VBScript and JScript in Vista Service Pack 1, Server 2008, and XP Service Pack 3. Currency and other locale-specific formats such as date, time, etc may not be displayed correctly. |
|