Deleting List Items

new topic     » topic index » view thread      » older message » newer message

Sorry if this message reaches everyone twice... problems with Topica (yeah, 
like there's a surprise!) have prevented my first one from being sent (or at 
least so I think?!)

I am looking for help with list views, particularly with deleting items.  My 
list are small (1-10 items)

Here is my original code:

for x = 1 to getCount(LV) do
   VOID = deleteItem(LV, x)
end for

This works most of the time, so I have implemented an addition...

while getCount(LV) > 0 do
   for x = 1 to getCount(LV) do
      VOID = deleteItem(LV, x)
   end for
end while

This seems to be better, but sometimes send the program into a seemingly 
infinite loop that it can not break free from.  It appears that win32lib 
does not always delete an item from a list view even though the program is 
coded to do exactly that.

Is this a bug?  Can someone explain what I might be missing here?  This also 
happens in Lists, and Combo Boxes...?

-Robert

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu