VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Check if input is a number (sometimes you need to read a user name, so this will make sure he/she d

by Ghost (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sat 17th March 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Check if input is a number (sometimes you need to read a user name, so this will make sure he/she does not type a numeric value) and show an

Rate Check if input is a number (sometimes you need to read a user name, so this will make sure he/she d



    if (  (KeyAscii > 48)  And (KeyAscii < 57 ) then
    MsgBox "Error, numeric values not allowed" 
    end if
End Sub

Download this snippet    Add to My Saved Code

Check if input is a number (sometimes you need to read a user name, so this will make sure he/she d Comments

No comments have been posted about Check if input is a number (sometimes you need to read a user name, so this will make sure he/she d. Why not be the first to post a comment about Check if input is a number (sometimes you need to read a user name, so this will make sure he/she d.

Post your comment

Subject:
Message:
0/1000 characters