Monday, May 24, 2010

Am reading my values from a database, which is supposed to be a String but somtimes it may be a double. How c?

If you save a numeric variable to a string type field (char or varchar etc) it is saved as a string. When you read the data your software may still interpret it as numeric. It is up to the programmer to ensure any actions carried out first convert it to string type. This is software rather than database function. A hint at the problem this causes you may help us to guide you.

Am reading my values from a database, which is supposed to be a String but somtimes it may be a double. How c?
I understand what you're saying, but what's the question?


No comments:

Post a Comment