Converting string to integer
Posted on 2006-06-27
I'm having problems converting from string to integer.
Here's my code
int AccountNumberNum = 0;
string AccountNumberWk = '1234567890123456'; //16 bytes
AccountNumberNum = Convert.ToInt32(AccountNumberWk);
It complains that " Value was either too large or too small for an int32"
Also tried long AccountNumberNum = 0; same result
Also tried double AccountNumberNum = 0; same result