Is there something like an IsAlpha() function in .NET. This function would return true if the character that is passed to it is in the alphabet (a, b, c, d, e, etc.)
Dim s As String = "test-8"
Dim i As Integer
For i = 0 To s.Length - 1
If Char.IsDigit(s.Chars(i)) Then
ElseIf Char.IsLetter(s.Chars(i)) Then
End If
Next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.