C
chongo
Hi,
i'm reading in a bigint value from SQL Server.
string s = myReader["BackColour"].ToString());
int intBackColour = System.Convert.ToInt32(s);
I'm also reading in other values the same way and it works great
except this one value, i'm getting
System.FormatException: Input string was not in a correct format.
I don't understand because when I print out the string s to the screen
it shows 0.
Does anyone have a idea why its doing this?
Any help would be greatly appreciated.
-dp
i'm reading in a bigint value from SQL Server.
string s = myReader["BackColour"].ToString());
int intBackColour = System.Convert.ToInt32(s);
I'm also reading in other values the same way and it works great
except this one value, i'm getting
System.FormatException: Input string was not in a correct format.
I don't understand because when I print out the string s to the screen
it shows 0.
Does anyone have a idea why its doing this?
Any help would be greatly appreciated.
-dp