A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Check for empty Explorer.Selection causes error in Outlook Today



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 3rd 06, 11:12 PM posted to microsoft.public.outlook.program_addins
Slava Barouline
external usenet poster
 
Posts: 15
Default Check for empty Explorer.Selection causes error in Outlook Today

I will probably use EntryID if
(IExplorer.CurrentFolderFOutlookTodayFolder) will not work

It shows different addresses for IExplorer.CurrentFolder and
FOutlookTodayFolder
How can I compare them?

"Dmitry Streblechenko" wrote in message
...
You'd be better off comparing the entry ids rather than names.
The fact that (IExplorer.CurrentFolder FOutlookTodayFolder) is
perfectly normal. Each time you access Explorer.CurrentFolder, OOM returns
a brand new COM object.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/



  #2  
Old December 4th 06, 05:35 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Check for empty Explorer.Selection causes error in Outlook Today

Compare entry ids.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Slava Barouline" slavadotbarouline@recruitmentsystemsdotcomdotau wrote in
message ...
I will probably use EntryID if
(IExplorer.CurrentFolderFOutlookTodayFolder) will not work

It shows different addresses for IExplorer.CurrentFolder and
FOutlookTodayFolder
How can I compare them?

"Dmitry Streblechenko" wrote in message
...
You'd be better off comparing the entry ids rather than names.
The fact that (IExplorer.CurrentFolder FOutlookTodayFolder) is
perfectly normal. Each time you access Explorer.CurrentFolder, OOM
returns a brand new COM object.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/





  #3  
Old December 5th 06, 01:45 AM posted to microsoft.public.outlook.program_addins
Slava Barouline
external usenet poster
 
Posts: 15
Default Check for empty Explorer.Selection causes error in Outlook Today

Thanks Dmitry

EntryIDs work fine

Why can't I compare Names?


"Dmitry Streblechenko" wrote in message
...
Compare entry ids.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool



  #4  
Old December 5th 06, 06:15 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Check for empty Explorer.Selection causes error in Outlook Today

Because nothing prevents a user from creating a folder with the same name
somewhere else in the folder hierarchy. The folder name will be different in
a locale other than English.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Slava Barouline" slavadotbarouline@recruitmentsystemsdotcomdotau wrote in
message ...
Thanks Dmitry

EntryIDs work fine

Why can't I compare Names?


"Dmitry Streblechenko" wrote in message
...
Compare entry ids.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool





  #5  
Old December 22nd 06, 02:14 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 1
Default Check for empty Explorer.Selection causes error in Outlook Today

a easier way to check it is:

int selected_items
try
{
selected_items = _Explorer.Selection.Count;
}
catch (COMException e)
{
return;
}


;-)

greetings

Dmitry Streblechenko schrieb:

Because nothing prevents a user from creating a folder with the same name
somewhere else in the folder hierarchy. The folder name will be different in
a locale other than English.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Slava Barouline" slavadotbarouline@recruitmentsystemsdotcomdotau wrote in
message ...
Thanks Dmitry

EntryIDs work fine

Why can't I compare Names?


"Dmitry Streblechenko" wrote in message
...
Compare entry ids.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Explorer Script Error 'hoverEdit' is undefined robin Outlook Express 5 November 6th 06 11:14 PM
Calendar error in the Outlook Today setting. HKHAIA Outlook - Calandaring 0 October 17th 06 01:28 PM
Explorer.exe -Application Error Dirving Outlook - Installation 1 July 5th 06 05:36 PM
Outlook 2007 Spell Check Error Jim B Outlook - Installation 0 June 7th 06 11:39 PM
Outlook Express won't check for new messages, getting this error! psongman Outlook Express 12 January 21st 06 03:22 AM


All times are GMT +1. The time now is 11:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.