Nov 25, 2003 #1 Pyramus Programmer Dec 19, 2001 237 GB Isn't it possible in .NET to cast strings to ints and longs? I'm trying and getting compile errors.
Nov 25, 2003 #2 Craftor Programmer Feb 1, 2001 420 NZ Have you tried things along the line of: Code: int.Parse(yourString); Upvote 0 Downvote
Nov 25, 2003 #3 SHelton Programmer Jun 10, 2003 541 GB or: Code: int i = Convert.ToInt32(yourString); Don't forget your try...catch block to prevent format exceptions. Upvote 0 Downvote
or: Code: int i = Convert.ToInt32(yourString); Don't forget your try...catch block to prevent format exceptions.