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

RDO Question



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 13th 09, 08:54 AM posted to microsoft.public.outlook.program_addins
Mark McGinty
external usenet poster
 
Posts: 25
Default RDO Question

Greets,

Unlike OOM objects, RDOMail objects (and derivations) do not expose a Class
property (in OOM, type Outlook.OlObjectClass.) I have been working around
this (converting a substantial project that relies heavily on .Class) by
interpolating RDOMail.MessageClass... but isn't that going to screw me if
custom forms are being used?

In a couple of places I used the containing folder's DefaultItemType, which
may not necessarily be definitive but, otoh, will not be affected by custom
forms. Is there another equivilent?


TIA,
MM



  #2  
Old December 13th 09, 07:00 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default RDO Question

Unlike OOM, all item related objects (RDOContactItem, RDOAppoitmentItem,
etc) in RDO are derived from the generic RDOMail object, which represents
regular messages and is anequivalent of the MailItem object in OOM.
So any item object can be accessed using RDOMail. If oyu need item specific
properties (e.g. RDOContactItem.Email1Address), you can use "is" and "as"
operators (VB and .Net) or TypeName in VB.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Mark McGinty" wrote in message
...
Greets,

Unlike OOM objects, RDOMail objects (and derivations) do not expose a
Class property (in OOM, type Outlook.OlObjectClass.) I have been working
around this (converting a substantial project that relies heavily on
.Class) by interpolating RDOMail.MessageClass... but isn't that going to
screw me if custom forms are being used?

In a couple of places I used the containing folder's DefaultItemType,
which may not necessarily be definitive but, otoh, will not be affected by
custom forms. Is there another equivilent?


TIA,
MM





  #3  
Old December 14th 09, 03:08 PM posted to microsoft.public.outlook.program_addins
Mark McGinty
external usenet poster
 
Posts: 25
Default RDO Question

Thanks for the reply Dmitry.

So your thinking was that the Class property is just a redundant incarnation
of runtime type info? That makes sense, and is also convenient to implement
in mixed RDO/OOM code.

btw, the elegance of the way all RDO*Item objects derive from RDOMail is not
lost on me at all. In fact I went to lengths trying to explain exactly that
to the folks that sign the checks... I failed miserably, of course, they had
not a clue as to what I was on about, but if nothing else they now associate
the words "RDO" and "elegant" (so I will take the "win" anyways.) :-)


Thanks again,
MM



"Dmitry Streblechenko" wrote in message
...
Unlike OOM, all item related objects (RDOContactItem, RDOAppoitmentItem,
etc) in RDO are derived from the generic RDOMail object, which represents
regular messages and is anequivalent of the MailItem object in OOM.
So any item object can be accessed using RDOMail. If oyu need item
specific properties (e.g. RDOContactItem.Email1Address), you can use "is"
and "as" operators (VB and .Net) or TypeName in VB.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Mark McGinty" wrote in message
...
Greets,

Unlike OOM objects, RDOMail objects (and derivations) do not expose a
Class property (in OOM, type Outlook.OlObjectClass.) I have been working
around this (converting a substantial project that relies heavily on
.Class) by interpolating RDOMail.MessageClass... but isn't that going to
screw me if custom forms are being used?

In a couple of places I used the containing folder's DefaultItemType,
which may not necessarily be definitive but, otoh, will not be affected
by custom forms. Is there another equivilent?


TIA,
MM







 




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
BCC Question CWLee Outlook Express 3 November 12th 07 09:49 PM
OT Question swsellers Outlook Express 7 November 4th 07 01:06 AM
set-up question Savvy3 Outlook - General Queries 3 February 23rd 07 08:21 PM
Bcc question Marty Outlook Express 2 November 26th 06 11:07 PM
ACL-Question Peter Marchert Outlook and VBA 4 November 9th 06 12:22 PM


All times are GMT +1. The time now is 11:30 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.