.NET Remove Blanks 01-06-2013, 01:41 AM
#1
Code:
'//Remove Blanks
Dim i As Long
i = 0
'' remove anything that looks like a blank
While i < ListBox1.Items.Count
If "" = Trim(ListBox1.Items(i).ToString) Then
ListBox1.Items.RemoveAt(i)
Else
i = 1 + i
End If
End While
'//
Enjoy.