You'll need to define the constants yourself. They are:
olMailItem 0
olAppointmentItem 1
olContactItem 2
olTaskItem 3
olJournalItem 4
olNoteItem 5
olPostItem 6
>Has anyone ever used VFP to connect to Outlook via OLE? There are a couple of papers on Microsoft's site with examples(of course there VB examples), and I've had some luck creating references to the Outlook Object library (ie.. oOutlookApp = CREATEOBJECT("Outlook.Application"), but I'm having trouble creating any new items, such as mail messages,notes, etc...
>It's as though it doesn't recognize the constants provided in their help such as (olMailItem, olNoteItem, ..) which are used with the oOutlookApp.CreateItem(olMailItem) method, which would create a new mail message. Any thoughts?
>
>Thanks in advance,
>
>sc