Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim wha As String = "123+"
Dim huh As String = "12+3"
MsgBox(IsNumeric(wha) & " " & IsNumeric(huh))
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim wha As String = "123+"
Dim huh As String = "12+3"
Dim varInt As String = "12345"
Dim varNumber As String = "123.45"
MsgBox("IsNumeric:" & IsNumeric(wha) & " " & IsNumeric(huh) & " " & IsNumeric(varInt) & " " & IsNumeric(varNumber))
MsgBox("IsInteger:" & IsInteger(wha) & " " & IsInteger(huh) & " " & IsInteger(varInt) & " " & IsInteger(varNumber))
MsgBox("IsNumber:" & IsNumber(wha) & " " & IsNumber(huh) & " " & IsNumber(varInt) & " " & IsNumber(varNumber))
End Sub
[blue] Private Function IsInteger(ByVal Data As String) As Boolean
IsInteger = IsNumeric(Data & ".0e0")
End Function[/blue]
[green] Private Function IsNumber(ByVal Data As String) As Boolean
IsNumber = IsNumeric(Data & "e0")
End Function[/green]