Skip to content

Instantly share code, notes, and snippets.

@Vivelin
Created July 30, 2013 10:59
Show Gist options
  • Save Vivelin/6112013 to your computer and use it in GitHub Desktop.
Save Vivelin/6112013 to your computer and use it in GitHub Desktop.
This is why you need Option Strict On.
Dim list As IList(Of String) = text.Split(" ")
Dim number As String = ""
For Each entry In list
If Char.IsDigit(entry) Then
number = entry
Exit For
End If
Next
If number = 1 Then
Return True
Else
Return False
End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment