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.
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.