S Steve Willcock Aug 8, 2004 #2 You want to use int.Parse(string); e.g. string s = "12345"; int i = int.Parse(s);
I Ignacio Machin \( .NET/ C# MVP \) Aug 9, 2004 #3 Hi, Int.Parse() will rise an exception if the string parameter is not convertible to an integer, you will have to wrap it on a try/catch cheers,
Hi, Int.Parse() will rise an exception if the string parameter is not convertible to an integer, you will have to wrap it on a try/catch cheers,