Some time ago I´ve developed a smartclient. It sends some parameters
(item-id, amount) to a webservice-method that returns a dataset with
information from the database about a certain item. Everything worked well
until the client was first used in another country with other regional
settings.
The problem is the following:
The returned dataset contains a table that contains a column with a value of
type double. The WebService-Method puts 10.34 into the table and returns it -
clients in our region receive 10.34 clients with another decimal separator
receive 1034 . Of course this is because the dot is interpreted as
GroupSeparator.
How can I work around this. I know about using NumberFormatInfo and so on -
but here I have a - public ItemDataSet GetItemInfo(String ItemID, double
Amount) {...} - on the one side, and a - ItemDataSet tmp =
proxy.GetItemInfo(...) - on the other. The problem seems to be under the
hood.

Signature
luxbox.net, Andreas Pircher
http://www.luxbox.net
Andreas Pircher - 18 Oct 2004 09:29 GMT
Meanwhile I solved it myself. I set the culture of the threads that call
WebServices to the culture that the server uses - Now doubles in DataSets
arrive correctly.