VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



The code below allow the users to enter only numbers.

by Narayanan Thiagarajan (2 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 5th June 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

The code below allow the users to enter only numbers.

Rate The code below allow the users to enter only numbers.



Select Case Chr(KeyAscii)
Case "0" To "9"
Case vbBack
Case Else
KeyAscii = 0
MsgBox "Accepts Only Numbers !!!", vbExclamation, "Invalid"
End Select
End Sub

Download this snippet    Add to My Saved Code

The code below allow the users to enter only numbers. Comments

No comments have been posted about The code below allow the users to enter only numbers.. Why not be the first to post a comment about The code below allow the users to enter only numbers..

Post your comment

Subject:
Message:
0/1000 characters