G
Guest
Hello,
string newStr=myStr.Substring(1,3);
int newNum = System.Convert.ToInt32(newStr);
This fails if newStr does not have all characters as numbers. How can you do
this in a professional way?
Thanks,
Jim.
string newStr=myStr.Substring(1,3);
int newNum = System.Convert.ToInt32(newStr);
This fails if newStr does not have all characters as numbers. How can you do
this in a professional way?
Thanks,
Jim.