Hi,
I have the following code:
The above works perfect.. But what I'm wondering is, why won't the following work, using the array directly:Code:'-- remove from current view For l = 0 To UBound(sKeys) nSelected = sKeys(l) ListView(iListView).ListItems.Remove nSelected Next l
It tells me "Element Not Found". It seems that even though sKeys(l) equals the correct item index, it doesn't like me to use it directly without converting it to another variable such as nSelected first..Code:'-- remove from current view For l = 0 To UBound(sKeys) ListView(iListView).ListItems.Remove sKeys(l) Next l
Any idea why I can't use the sKeys(l) direclty?
Thanks,
Dan


Reply With Quote
