You are on page 1of 4

:

Visual Basic 6
Text
: Visual Basic 6

: Standard EXE
Open

: Text

Text :
:

:
()Private Sub Text1_Change
If Not ValidateNumeric(Text1.Text) Then
"" = Text1.Text
End If
End Sub

_ (Private Function ValidateNumeric(strText As String


As Boolean
_ "" = ValidateNumeric = CBool(strText
_ "-" = Or strText
_ ".-" = Or strText
_ "." = Or strText
((Or IsNumeric(strText
End Function

: F5

.

) (

You might also like