VB Program - To check if a number is Numeric or not
Program:
-Use of IsNumeric()
Sub checkNumeric()
Dim varNum
varNum = InputBox("Enter a Number")
If IsNumeric(varNum) = "True" Then
MsgBox varNum + " is a Numeric Value"
Else
MsgBox varNum + " is not a Numeric Value"
End If
MsgBox varNum + " is a Numeric Value"
Else
MsgBox varNum + " is not a Numeric Value"
End If
End Sub
No comments:
Post a Comment