Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Delete Outlook Task from inside VFP

Status
Not open for further replies.

jollymon

Programmer
Nov 6, 2003
5
US
Using a FAQ from this website, I was able to create an Outlook task from within VFP.

I now need to be able to locate an Outlook task and delete it. Can someone point me in the right direction.

Maybe an Outlook Application method map or something. Where is this information found?

Thanks in Advance
 
Hi jollymon,

Try this:

-------------
#Define olFolderTasks 13

oOutlook = CreateObject("Outlook.Application")
oNS = oOutlook.GetNamespace('MAPI')
oTasks = oNS.GetDefaultFolder(olFolderTasks)
oTasks.Items.Remove(1) && delete task item #1
-------------

You can locate for specific item using:
oTasks.Items.GetFirst
oTasks.Items.GetNext
oTasks.Items.GetPrevious
oTasks.Items.GetLast


Hope it helps

-- AirCon --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top