Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having trouble deleting Outlook task after a .Find()
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00823462
Message ID:
00823491
Views:
25
I think I found a (strange) solution to this. I was going down the road of wondering whether my .Find call did actually give me a live object, as it seemed to. So I did this:
 ot.Subject = "Please Delete Me!"
 ot.Save
I checked in Outlook and the task's subject had been updated. After that, ot.Delete worked fine. So my workaround code in the DeleteTask method of my Outlook wrapper class is:
  *NOTE: Next 2 lines below work around OLE error was getting on .Delete call.
  oTask.Subject = oTask.Subject
  oTask.Save
  oTask.Delete
Strange, but seems to work.

Kelly
Previous
Reply
Map
View

Click here to load this message in the networking platform