Redemption Question

  • Thread starter Thread starter Iwi
  • Start date Start date
I

Iwi

I am using outlook redemption and I have a problem in using
HrGetOneProp and HrSetOneProp. I'm trying to read a extended values
from one Outlook Item and set it to other outlook Item. I am having no
difficulities if the type is string (PT_STRING8) since I can just pass
string object to both functions. My problem is with the Date object. I
seems not to be able to find the right object type to pass in
HrSetOneProp, causing the property not to be set correctly. What data
type should I use to handle PT_SYSTIME? I'd appreciate any inputs.
Thank you
 
Dmitry,

I am still having problem declaring DateTime object. Here's a piece of
my code

'========= Get extended MAPI props for:: Time =============
Dim oSubmitTime, oDeliveryTime As ??????????
oSubmitTime = utils.HrGetOneProp(oTemplate.MAPIOBJECT,
PrClientSubmitTime)
oDeliveryTime = utils.HrGetOneProp(oTemplate.MAPIOBJECT,
PrMessageDeliveryTime)
'==========================================================
'========= Set extended MAPI props for:: Time =============
utils.HrSetOneProp MailItem, PrClientSubmitTime, oSubmitTime, True
utils.HrSetOneProp MailItem, PrMessageDeliveryTime, oDeliveryTime,
True
'==========================================================

What should I fill in as the variable type? The compilter doesn't seem
to like DateTime. For String object, I can easily declare it as a
String, but I have problem on Time Object.
 
Back
Top