Function isDigit(c as String) As Boolean
return c<="9" and c>="0"
End Function
You can also use the the built-in function isNumeric.[/quote]
Thank you Jason, simple, to simple…its works
Function IsDigit(s As String) As Boolean
If IsNumeric(s) Then
Dim i As Integer = CDbl(s)
Return If(i >= 0 And i <= 9, True, False)
Else
Return False
End If
End Function
[quote=149154:@Martin Trippensee]Thank you Jason, simple, to simple…its works
Function IsDigit(s As String) As Boolean
If IsNumeric(s) Then
Dim i As Integer = CDbl(s)
Return If(i >= 0 And i <= 9, True, False)
Else
Return False
End If
End Function
[/quote]
I wouldn’t count on this, unless you are 100% sure s will only ever be a single character.