VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This function will allow only Numbers in text boxed

by raghuraja. C (21 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 17th February 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This function will allow only Numbers in text boxed

Rate This function will allow only Numbers in text boxed



    On Error GoTo LOCALERRORHANDLER
    If (KPress >= 48 And KPress <= 57) Or KPress = 8 Or KPress = 13 Then
        fnOnlyNumber = KPress
    Else
        fnOnlyNumber = 0
    End If
    Exit Function
LOCALERRORHANDLER:
    fnOnlyNumber=0

Download this snippet    Add to My Saved Code

This function will allow only Numbers in text boxed Comments

No comments have been posted about This function will allow only Numbers in text boxed. Why not be the first to post a comment about This function will allow only Numbers in text boxed.

Post your comment

Subject:
Message:
0/1000 characters