Created
July 30, 2013 10:59
-
-
Save Vivelin/6112013 to your computer and use it in GitHub Desktop.
This is why you need Option Strict On.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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