B
bh
If I want to loop through the values in a listbox, and get either all items
in the box, or only selected items, based on a boolean variable passed into
a subroutine, which method would be more efficient?
First Method (test allvalues, first and either loop through all items or
selecteditems, accordingly):
Dim dview As DataRowView
Dim AllValues As Boolean = False
If AllValues = True Then
For Each dview In lstMyListBox.Items
in the box, or only selected items, based on a boolean variable passed into
a subroutine, which method would be more efficient?
First Method (test allvalues, first and either loop through all items or
selecteditems, accordingly):
Dim dview As DataRowView
Dim AllValues As Boolean = False
If AllValues = True Then
For Each dview In lstMyListBox.Items