Background
Users in the US were our application's initial user base, but this has expanded to the point that Canadian, British, and Scandinavian users also use the system.
The PowerBuilder datawindow didn't like the Scandinavian currency format with decimals and periods transposed (###.###,00). When we tried to set the format in the datawindow, it complained, saying something about the format not being valid.
We cannot be the only people that have encountered this problem, but I didn't see a lot about this topic on the usual searches over the Internet.
Our current workaround
For the time being, one of the developers found a workaround, by having the login script change the currency format on the Windows operating system for the session, and putting "[currency]" in the datawindow field's format property to pick up the operating system's format.
This seems to work but is a less than optimal solution in my opinion for a number of reasons.
- It requires that our Scandinavian users run the app via a different icon than the other users. I shouldn't have to go into details about how rotten it is to have two different icons to log into the app, plus the maintenance hassles of having each one kick off a different format script.
- It only solves the issue of currency formatting for a single currency in a user session. As our app becomes more international, we may need to be able to display a variety of currencies in the same report.
There must be a better way
I'm fairly certain someone will tell me I need to read Spolsky's unicode essay. But aside from that, I'm interested in details on a slicker PowerBuilder solution, if anyone has one. Thanks in advance.