VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Determine / Prevent users from entering Numbers or Alpha Characters

by DrgnCreep (2 Submissions)
Category: String Manipulation
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Wed 11th October 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Determine / Prevent users from entering Numbers or Alpha Characters

Rate Determine / Prevent users from entering Numbers or Alpha Characters



[email protected] (Don't Email my ass)


Sub CheckString (strTest as String)
'Be sure to pass the string to test...
'i.e. Call CheckString Text1.Text

'Replace Msgbox with other code if you like

   If IsNumeric(strTest) = True Then 
        Msgbox "String Value Passed is Numeric"
   End If
   If IsNumeric (strTest) = False Then
        Msgbox "String Value Passed is Alpha"
   End If
End Sub

Download this snippet    Add to My Saved Code

Determine / Prevent users from entering Numbers or Alpha Characters Comments

No comments have been posted about Determine / Prevent users from entering Numbers or Alpha Characters. Why not be the first to post a comment about Determine / Prevent users from entering Numbers or Alpha Characters.

Post your comment

Subject:
Message:
0/1000 characters