|
-
Jul 15th, 2003, 12:12 AM
#1
Thread Starter
Hyperactive Member
is letter or digit - textbox characters..
how can i tell if a user entered in ONLY a letter a-z and or a digit...
ive tried..
Dim mytext As Char
If mytext.IsLetterOrDigit(txtDistrictDB.Text) = True Then
MsgBox("yes")
Else
MsgBox("no")
End If
but if i type in a character such as !@#$%^&*()_ it returns true also.....
it doesn't work if i try to get the characters in a text box, but if i type in one character than it works.. is there a way around it rather than looping through each character?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|