Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   List of explorers (http://www.outlookbanter.com/add-ins-outlook/75161-list-explorers.html)

Hichem Sarrai July 14th 08 10:09 PM

List of explorers
 
Hi,
Is there an outlookApplication.Explorers[0].
and what is the difference with outlookApplication.Explorers[1].

When I initialize my outlook addin I do the following :

if (Explorers.Count = 1)
{
OutlookExplorersManager.AddExplorer(this, Explorers[1]);
}

If Explorers[0] exists would it be more logic to write :

if (Explorers.Count = 2)
{
OutlookExplorersManager.AddExplorer(this, Explorers[1]);
}


Thanks for answering...

Sue Mosher [MVP-Outlook] July 14th 08 11:17 PM

List of explorers
 
No. Explorers, like other Outlook object model collections, is 1-based, not
0-based.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Hichem Sarrai" wrote:

Hi,
Is there an outlookApplication.Explorers[0].
and what is the difference with outlookApplication.Explorers[1].

When I initialize my outlook addin I do the following :

if (Explorers.Count = 1)
{
OutlookExplorersManager.AddExplorer(this, Explorers[1]);
}

If Explorers[0] exists would it be more logic to write :

if (Explorers.Count = 2)
{
OutlookExplorersManager.AddExplorer(this, Explorers[1]);
}


Thanks for answering...



All times are GMT +1. The time now is 07:09 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com