Greetings,
I have a CheckedListBox with Items
I also have a Stringarray which contains values from a DB
All Items in the CheckedListBox ar checked, now i like to uncheck all items if there are in the StringArray.
Normaly i would do 2 for loops like
Code is only pseudo - so no need to say it would not work this way
I know
I am now wondering if there is a better or more efficient way to do this, not through looping in a worst case scenario 200 * 200 times.Code:' Loop though CheckedListBox For i = 0 to CheckedListBox.count -1 ' Loop though StrArray For ii = 0 to Ubound(strArray) ' Compair CheckListBoxItem against StrArray Item ' and check / uncheck depending of result Next ii Next i
Thanks for your input



Reply With Quote
