PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins List of explorers

Reply

List of explorers

 
Thread Tools Rate Thread
Old 14-07-2008, 09:09 PM   #1
Hichem Sarrai
Guest
 
Posts: n/a
Default 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...
  Reply With Quote
Old 14-07-2008, 10:17 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default RE: 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...

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off