xsharp.eu • Access Table with Integer fields Price , Amount def as double Coversion problem - Page 2
Page 2 of 2

Access Table with Integer fields Price , Amount def as double Coversion problem

Posted: Mon Mar 11, 2019 9:34 am
by MathiasHakansson
Yes, as Johan said. It's much more efficient to get the value through "unboxing" compared to converting it to a string and then parsing that string back into a number again. The value of rdr["EPPreis"] is an Object(System.Double) (a System.Double stored in an object variable).

Another observation;
If you use string constants for your field, and table names you get a spell check at compile time, and you can also easily find all references to a particular field or table in your code.

/MathiasH