Validate only alphabets

Bubbly
Posted by Bubbly under VB.NET category on | Views : 3971
This function will validate user's entry for alphabets from A-Z


Function CheckAtoZ(chr1) As Boolean
CheckAtoZ = True
If ((Asc(chr1) < 65) Or (Asc(chr1) > 90)) Then
CheckAtoZ = False
End If
End Function

Comments or Responses

Login to post response