Question : How to convert sting value into integer value ? Answer : Suppose str is a string that contain numeric value and we have to work numerical operation on that value then we have to convert it into integer for further process. Example string str="5621"; int i; i=int.Parse(str); Now str is changed into integer value and we can perform a numerical task on it.
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

SubashPosted Sep 7, 2016, 2:42 AM
Good
Sreejesh SPPosted Mar 11, 2013, 2:09 AM
int32 a=convert.toint32(str);
Santosh YadavPosted Mar 10, 2013, 11:00 AM
Thanks for giving time to my article ! It may be but how can we perform numerical operation with this kind of numeric value....
MaximilianPosted Mar 10, 2013, 10:35 AM
Hej, i would excahnge int.Parse with int.TryParse(str, out i) so you cant get an exception if your string is "h294lode83" ...