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,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Steve Willcock" <st***@N-O-S-P-A-Mwillcockconsulting.com> wrote in message
news:cf*******************@news.demon.co.uk...
You want to use int.Parse(string);
e.g.
string s = "12345";
int i = int.Parse(s);
--
Steve Willcock, MCSD
http://www.willcockconsulting.com/
"authorking" <au************@hotmail.com> wrote in message
news:eE*************@TK2MSFTNGP09.phx.gbl... How can I convert a string data type to a int data type.