Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IsAlpha() function - does .NET have one? 2

Status
Not open for further replies.

tadd

Programmer
Oct 28, 2001
70
US

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.)
 
Play with this:
Code:
            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


Senior Software Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top