Outlook Items events don't give Delete event when you delete last item in items

I

Ian Boyd

The Outlook ItemsEvents interface has 3 methods:

ItemsEvents = dispinterface
['{00063077-0000-0000-C000-000000000046}']
procedure ItemAdd(const Item: IDispatch); dispid 61441;
procedure ItemChange(const Item: IDispatch); dispid 61442;
procedure ItemRemove; dispid 61443;
end;

The ItemRemove event is not fired when the last item from an Items set is
removed. It tells when when the 3rd last one is removed. The 2nd last one.
But not the last one.

And of course, i then don't know that the last one is gone - so i try to
access it - and get an error.
 
J

Jean-Marie

I have the same problem with my application.
Is there a way to be notify that the Outlook folders we watched ha
been empty
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top