M
Michel Vanderbeke
Hello,
In order to avoid errors, I have all my DataReader-fields converted with a
..ToString.
This in case some record could have Null-fields and an error would be
thrown.
This works fine, except for "money" fields in SQL-Server.
When I enter e.g. ? 2,50 and I read it back with a DataReader without
..ToString, I get the correct display.
However using .ToString, I get no valuta-sign and the value is multiplied by
10 000.
When trying to StringFormat the DataReader.ToString, I get a syntax error.
Can someone explain this to me an offer some help?
Many thanks and greetings,
Michel
In order to avoid errors, I have all my DataReader-fields converted with a
..ToString.
This in case some record could have Null-fields and an error would be
thrown.
This works fine, except for "money" fields in SQL-Server.
When I enter e.g. ? 2,50 and I read it back with a DataReader without
..ToString, I get the correct display.
However using .ToString, I get no valuta-sign and the value is multiplied by
10 000.
When trying to StringFormat the DataReader.ToString, I get a syntax error.
Can someone explain this to me an offer some help?
Many thanks and greetings,
Michel