文字列が空かどうか調べる文字列(String)が空の文字列かを調べるには、「2つの文字列が等しいかを調べる」で紹介したように、等値演算子(VB.NETは=、C#は==)やEqualsメソッドを使って、空の文字列(""やString.Empty)と比較すればよいだけです。 Dim s As String = "こんにちは" If s = "" Then Console.WriteLine("文字列は空です") End If If s = String.Empty Then Console.WriteLine("文字列は空です") End If If s.Equals("") Then Console.WriteLine("文字列は空です") End If If s.Equals(String.Empty) Then Console.WriteLine("文字列は空です") End If st