I have an odd result trying to remove an individual item from a listbox.
Here's my one line of code:
Code:
lbxAttendee.Items.Remove(thisEvent.Tables("Attendees").Rows(i).Item("AttendeeType"))
I am using the "item as string" overload of the Remove method.
thisEvent.Tables("Attendees").Rows(i).Item("Attend eeType") returns a string value that matches an item text in the listbox. I have also tried CStr to cast the return value as a String.
At run time I get no errors, but the item is not removed from the listbox. Any ideas?
Thanks in advance for your comments.
- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.