LocList = New List(Of List(Of String))
LocList.Add("") LocList.Add("one") LocList.Add("") LocList.Add("two") LocList.Add("three")
If LocList.Item(0) = String.Empty Then 'do something End if
For Each str As String In LocList If (String.IsNullOrEmpty(str)) Then MessageBox.Show('empty') End If Next
if LocList.Length>=1 then ' checking length of the list If (String.IsNullOrEmpty(list.Item(0))) Then MessageBox.Show('empty') End If End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)