VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Single line code that prevents a user from entering alphabetic characters in a numeric-only textbox

by Chaitanya Dhareshwar (4 Submissions)
Category: String Manipulation
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Sat 29th November 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Single line code that prevents a user from entering alphabetic characters in a numeric-only textbox.

API Declarations


'of the textbox. This may be KeyUp, KeyDown or KeyPress.

Rate Single line code that prevents a user from entering alphabetic characters in a numeric-only textbox



Text1.text = Val(Text1.text)

Download this snippet    Add to My Saved Code

Single line code that prevents a user from entering alphabetic characters in a numeric-only textbox Comments

No comments have been posted about Single line code that prevents a user from entering alphabetic characters in a numeric-only textbox. Why not be the first to post a comment about Single line code that prevents a user from entering alphabetic characters in a numeric-only textbox.

Post your comment

Subject:
Message:
0/1000 characters