
11-22-2004, 05:36 AM
|
|
Freshman
|
|
Join Date: Jun 2004
Location: South Africa
Posts: 27
|
|
Mapi delete
|
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 
|
|