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
Access Table with Integer fields Price , Amount def as double Coversion problem
-
- Posts: 50
- Joined: Fri Feb 16, 2018 7:52 am