how do i convert a string to integer ???
Printable View
how do i convert a string to integer ???
wouldn't this do it?
VB Code:
IntNumber = CInt(StringNumber)
use the convert classQuote:
Originally posted by area91
how do i convert a string to integer ???
dim num as string = "1234"
Convert.ToInt16(num)
Just adding yet another way:
Int.Parse("mystring")
so, ahem:D any performance difference/advantage between Parse, Cint() and Convert.ToWhatever?:rolleyes:Quote:
Originally posted by hellswraith
Just adding yet another way:
Int.Parse("mystring")