Hi to all,
What other properties should I use to get the date and time?
#DEFINE olFolderInBox 6
#include "fivewin.ch"
FUNCTION MAIN()
LOCAL oOutlook := TOleAuto():New( "Outlook.Application" )
LOCAL oNameSpace := oOutlook:getnamespace('MAPI')
LOCAL oFolder := oNameSpace:GetDefaultFolder( olFolderInBox )
LOCAL nItems
LOCAL oMail
LOCAL iMsg
nItems := oFolder:Items:Count
FOR iMsg := 1 TO nItems
oMail := oFolder:Items[ iMsg ]
? oMail:Subject
// ? omail:SentOn
? oMail:CreationTime
? oMail:ReceivedTime // does not work
NEXT iMsg
RETURN NIL