by luke99au (2 Submissions)
Category: Complete Applications
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(14 Votes)
Shows you how to check if text is a numeric *Easiest way*
'You need a command button (Command1)
'Also a textbox (Text1)
Private Sub Command1_Click()
If IsNumeric(Text1.Text) Then
MsgBox "Thankyou for entering a number"
Else: MsgBox "Please enter a number"
End If
End Sub