RDO Question

Status
Not open for further replies.
M

Mark McGinty

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
 
D

Dmitry Streblechenko

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)

-

"Mark McGinty" <mmcginty@spamfromyou.com> wrote in message

news:%23QVL5l8eKHA.2160@TK2MSFTNGP02.phx.gbl...
> 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

>
 
M

Mark McGinty

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" <dmitry@dimastr.com> wrote in message

news:%23VA3E7BfKHA.6096@TK2MSFTNGP02.phx.gbl...
> 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)
>

>

>

> -
> "Mark McGinty" <mmcginty@spamfromyou.com> wrote in message
> news:%23QVL5l8eKHA.2160@TK2MSFTNGP02.phx.gbl...
> > 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
>

>
>>


>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M RDO: using TypeOf to determine [OOM] Class Outlook VBA and Custom Forms 1
S Failed to create an RDO session instance: Class not registered Outlook VBA and Custom Forms 1
O Newbie question: how to sync two Outlook -Exchange and IMAP- calendars? Using Outlook 4
D a general question re how backup programs handle pst files ... I have no problems, just curious Using Outlook 1
e_a_g_l_e_p_i A few question before I decide to switch to Pop from imap Using Outlook 9
D.Moore SendAndReceive question Outlook VBA and Custom Forms 2
J Transport Rule to detect Keyword question.. Exchange Server Administration 2
N Question Using Outlook 8
D Shared Mailbox question Exchange Server Administration 1
CWM030 Another Quarantine question Exchange Server Administration 0
E Outlook 2010 Can somebody tell me , the question associated with OST format Using Outlook 1
CWM030 A quick question for Diane about Exchange Exchange Server Administration 2
CWM030 Email Catagorties question Using Outlook 1
MahdeeyaAbdulla Friend's outlook question Using Outlook 1
e_a_g_l_e_p_i Question about address book in Outlook 2010 Using Outlook 9
M Question about nested distribution lists Outlook VBA and Custom Forms 3
e_a_g_l_e_p_i A question about installing office 2013 Pro and using my .pst from office 2010 Using Outlook 12
rerun101 Question about message options Outlook VBA and Custom Forms 4
M Question: Is there a rule that will save email in Windows Explorer Outlook VBA and Custom Forms 3
M Question on address book Using Outlook 1
e_a_g_l_e_p_i question about saving my .pst so I can import it to my Outlook after I build a new system Using Outlook 10
V Question on pop email Using Outlook 2
D a general question regarding data files Using Outlook 3
R Outlook 2007 - Email Question - POP3 to IMAP Outlook VBA and Custom Forms 11
D Advanced Search Question Using Outlook 1
adaminaus Quick question if i may Using Outlook 4
T Business Projects question BCM (Business Contact Manager) 0
V question about personal and shared calendars Exchange Server Administration 1
A Basic BCM question about sync to Outlook 2013 BCM (Business Contact Manager) 1
Jeff Rott Diane Question on "Use in a Run a Script Rule" Outlook VBA and Custom Forms 1
C Custom Forms: Question about retaining form information throughout the entire conversation Outlook VBA and Custom Forms 2
D OST question Exchange Server Administration 5
Mr Mayor Another recurring meeting question Using Outlook 1
V iCloud question Using Outlook 3
J "Specific word in body" question Using Outlook 1
A Newb-ish question Using Outlook 2
A The hardest VBA/Outlook question yet Using Outlook 1
S DAG question Exchange Server Administration 0
P Outlook File Extension Question Using Outlook 3
J Outlook 2010 Calendaring Question Using Outlook 0
K Syncing outlook with iCloud question Using Outlook 5
T Outlook Prf/Automation question Using Outlook 2
T Settings question Using Outlook 6
D Question re: Grouping by Due Date vs. Sorting by Due Date Using Outlook 1
IGWright Outlook 2013 .pst Question Using Outlook 10
F To Do Bar question Using Outlook 1
T I recently changed my pop3 email to an imap - question on folders Using Outlook 3
e_a_g_l_e_p_i Can someone please answer a question about tasks for me Using Outlook 2
S Question regarding contact links Exchange Server Administration 37
J resource calendar mailbox email question Exchange Server Administration 1

Similar threads

Top