Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 1340 | Replies: 1
![]() |
•
•
Join Date: Jul 2005
Posts: 35
Reputation:
Rep Power: 4
Solved Threads: 0
i have created a textbox, and if the user have enter an invalid value, the textbox must be able to check whether the value enter by the user is a string or an integer. I have set the CausesValidation to true. If i tried to enter a character, and the msgbox should appear "Is not an integer" but instead i got an error message that says "compile error : Method or data member not found " . I doesn't understand why does this error message keep pop out. Please explain where it went wrong.
Private Sub Text2_Validate(Index As Integer, Cancel As Boolean)
If IsNumeric(Text2.Text) = False Then
MsgBox "Is not an integer"
Cancel = True
End If
End Sub![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode