String to Int
-
Hi, I know that to convert an int to a string you use:
myInt.toString();
But, I want to convert a string to int, what is the function for this? Thanks.In .NET 2.0 use
Int32.TryParse
, otherwiseInt32.Parse
.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
In .NET 2.0 use
Int32.TryParse
, otherwiseInt32.Parse
.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
Hi, I know that to convert an int to a string you use:
myInt.toString();
But, I want to convert a string to int, what is the function for this? Thanks.There is also a method like
Convert(variable,CType)
:laugh: Good LuckSyed Shahid Hussain
-
Hi, I know that to convert an int to a string you use:
myInt.toString();
But, I want to convert a string to int, what is the function for this? Thanks.Just FYI, there is also a method called Convert.ToInt32(). Either method will work fine.
Jon Sagara When I grow up, I'm changing my name to Joe Kickass! My Site | My Blog | My Articles