- Home
·
- Miscellaneous
·
- This small proram allow user to write only numeric values you call call this function in keypress e
This small proram allow user to write only numeric values you call call this function in keypress e
This small proram allow user to write only numeric values you call call this function in keypress event : Example : Keyascii=Numerique
Rate This small proram allow user to write only numeric values you call call this function in keypress e
(1(1 Vote))
Dim Tableau
If Caractere = 8 Then
Numerique = Caractere
Exit Function
End If
If IsNumeric(Chr(Caractere)) Or Chr(Caractere) = "." Then
If Chr(Caractere) = "." And Entier = True Then
Tableau = Split(Texte, ".")
If UBound(Tableau) = 1 Then
Numerique = 0
Exit Function
End If
Else
If Chr(Caractere) = "." Then Numerique = 0: Exit Function
End If
Else
Numerique = 0
Exit Function
End If
Numerique = Caractere
End Function
This small proram allow user to write only numeric values you call call this function in keypress e Comments
No comments yet — be the first to post one!
Post a Comment