VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Write only numeric values into a textbox you can coose to write real or integer

by Boujnah ghazi (1 Submission)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 18th April 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Write only numeric values into a textbox you can coose to write real or integer

Rate Write only numeric values into a textbox you can coose to write real or integer



'Developped by boujnah ghazi
' 18/04/2003
' This small program allow user to write only numeric values
' if your number is real Place R in the Tag property
Dim Ancien as string
Ancien = Me.Text2
If KeyAscii = 46 And Text2.Tag <> "R" Then KeyAscii = 0: Exit Sub
If IsNumeric(Me.Text2 & Chr(KeyAscii)) Then
Else
KeyAscii = 0
End If
End Sub


Download this snippet    Add to My Saved Code

Write only numeric values into a textbox you can coose to write real or integer Comments

No comments have been posted about Write only numeric values into a textbox you can coose to write real or integer. Why not be the first to post a comment about Write only numeric values into a textbox you can coose to write real or integer.

Post your comment

Subject:
Message:
0/1000 characters