Author Topic: Convert String to Integer  (Read 121 times)

mc-John

  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Convert String to Integer
« on: January 31, 2017, 06:38:24 pm »
Code: [Select]
        Dim stopInt As Integer = -1
        If Integer.TryConvert("100", stopInt) Then
            //Success Variable stopInt contains 100
        Else
            // Failure stopInt contains -1
        End If

It does not handle hex values like "0x64" though