1.

How to check wheather character is string or numeric

Answer»

Bellwo code will helps you to GET wheather CHARACTER is STRING or numeric

Sub MAIN()
DIM sValue As String = "1Abc"
Dim sValueAsArray = sValue.ToCharArray()
If IsNumeric(sValueAsArray(0)) Then
Console.WriteLine("First character is numeric")
Else
Console.WriteLine("First character is not numeric")
End If
Console.ReadLine()
End Sub



Discussion

No Comment Found