Search Tools Links Login

Easiest way to tell if text is a number

Shows you how to check if text is a numeric *Easiest way*

Original Author: luke99au


'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

About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 89 times


Visual Basic 6


No attachments for this post

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.