View Single Post
  #1  
Old July 12th 07, 05:38 PM posted to microsoft.public.outlook.program_vba
Thatch
external usenet poster
 
Posts: 23
Default How does one find out that an item is deleted? (all Outlook Versio

I know I must be missing something really obvious, but how does one
programatically find out if a particular item has been deleted? For example,
I retrieve my items in Outlook in the following manner:

gOutlookItem = gOutlookNamespace.GetItemFromID(strEntryID, strStoreID)

That retrieves the item into the gOutlookItem. However, how do I find out if
this item has been deleted?

One strategy I use is to check if the gOutlookItem.Parent.Name is "Deleted
Items", however that only works on English installations of Outlook. In other
countries, "Deleted Items" is a different name. So that fails.

Hence, is there a flag or property on the gOutlookItem that indicates that
it is deleted, or is there a property or class in the deleted items folder
that indicates that it contains "Deleted Items"?

Thanx you in advance for any hints on how to deal with my conundrum....
Ads