VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Easiest way to tell if text is a number

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*

Rate Easiest way to tell if text is a number

'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 

Download this snippet    Add to My Saved Code

Easiest way to tell if text is a number Comments

No comments have been posted about Easiest way to tell if text is a number. Why not be the first to post a comment about Easiest way to tell if text is a number.

Post your comment

Subject:
Message:
0/1000 characters