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

Code

'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

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.