値が数値か文字列か判別
Int32.TryParse Method (System) | Microsoft Docs
Dim str As String : Dim i As Integer str = Console.ReadLine() '入力された値を読み込む If Integer.TryParse(str, i) Then Console.WriteLine("入力されたのは数値: {0}", i) Else Console.WriteLine("入力されたのは文字列: {0}", str) End If Console.ReadLine()