i make a textbox,enter some data, store it into string format,there are some values as numbers,can i change these string numbers into integer format the problrm is for visual c++ in visual studio in the windows form
A:
If I understand your question correctly you can use the atoi() method, check this link.
Simon Linder
2010-03-24 15:40:31
can u give the exact coding for that i am unable to get it
suman
2010-03-24 17:50:10
There is a example when you follow the link. Can't help more at the moment... But must be something like: int i = atoi(yourString);
Simon Linder
2010-03-24 18:03:25
that was a c ++ code...its not working in visual studio windows forms
suman
2010-03-24 18:05:49
So you are implementing in .NET? If so first of all your tag is obviously not precise enough as it just says "visual-c++". If you are implementing C# the code would be int i = Int32.Parse(yourString); C++-CLI would be int i = Int32::Parse(yourString);
Simon Linder
2010-03-24 18:25:23