Mapi delete

Smartie
11-22-2004, 05:36 AM
I am using the MAPI controls. I add certain (based on a specific criteria) emails to a listview. Then I want to go trough all the listitems and delete the emails. (one of the columns of the listview contains the MAPI MsgIndex) My problem is that when I delete a email it reduces the MsgCount property by 1, and decrements the index number by 1. If I continue iterating through the listitems I get the error 'Invalid property value'. I understand why I am getting the error but is there any way that I can solve this.

At some stage I would also like to select only some of those emails in that listview and delete them.

any help will be much appreciated :)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum