How to determine which folder I clicked

Add-in Express™ Support Service
That's what is more important than anything else

How to determine which folder I clicked
 
Donni Devito




Posts: 54
Joined: 2004-08-16
Hi,
I want to track which folder I clicked. There are more than 2 folder with the same name. Im creating the folders with TadxOLSolutionModule, at runtime. I tried to assign unique values to created folders but there is no property like tag. Then I saw that I can get the folder name in adxCOMAddInModuleOLExplorerBeforeFolderSwitch event. But the result is MAPIFolder.

Anyway,
Im creating the folders. There are more than 2 folder at the same time. How can I determine which one is right folder?

And is there any way to track only my created folders?

Regards.
Posted 13 Nov, 2014 15:32:23 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Donni,

You need to compare the paths to these folders. MAPIFolder.Parent returns either a MAPIFolder or Namespace object. You use this fact to create the full path. If you use an Outlook type library other than Outlook 2000, you can use MAPIFolder.FolderPath to get the path.


Andrei Smolin
Add-in Express Team Leader
Posted 14 Nov, 2014 02:52:42 Top
Donni Devito




Posts: 54
Joined: 2004-08-16
Hi Andrei,
Thank you for the answer. I tried a way and its OK now.

regards.
Posted 14 Nov, 2014 03:03:55 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
You are welcome.


Andrei Smolin
Add-in Express Team Leader
Posted 14 Nov, 2014 03:18:28 Top