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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine an e-mail has arrived in Outlook using BindEvents() 1

Status
Not open for further replies.

Mike Gagnon

Programmer
Apr 6, 2002
8,067
CA

Take a look at faq184-3894 the last entry.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mike,

It is very nice. Can I infer that the bind events will only work with VFP8 ?. If the answer is yes, that it will work with only VFP8, probably, you can mention that with what versions, the commands will work, to avoid, users getting back with questions.

When you post codes related to automation, I am compelled to vote with very good rating. My vote to you here this time, because I was just thinking about bind events VFP and automation.. blah blah... :)


____________________________________________
Ramani - (Subramanian.G) :)
When you ask VFP questions, please add VFP version.
 
Ramani

Can I infer that the bind events will only work with VFP8 ?.

Sorry, BindEvents() was added in VFP7.0, I'll amend the FAQ. And thank you for the
star.gif


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Ramani

You can also determine the Excel events using this, it helps helps you determine the events you can deal with:
Code:
#DEFINE VFPCOM_CLSID  "VFPCOM.COMUTIL"
#DEFINE EXCEL_CLSID  "Excel.application"

local loVFPCOM, loExcel
loVFPCOM = create(VFPCOM_CLSID)
loExcel = create(EXCEL_CLSID)

loVFPCOM.ExportEvents(loExcel, ;
  'c:\Excel_Events.prg')
MODIFY COMMAND c:\excel_events.prg

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mike..

BINDEVENT() has been introduced in VFP8.

I cannot see any BINDEVENTS().. nor BINDEVENT() in VFP7. Where am I doing mistake?

:)

____________________________________________
Ramani - (Subramanian.G) :)
When you ask VFP questions, please add VFP version.
 
Ramani

I have a feeling that VFPCOM Utility allows this code to use BindEvents() that is included in the VFPCOM utility rather than the BindEvents that VFP8.0 has. It is possible that this VFPCOM utility was a precursor to the addition of BindEvents() in VFP8.0. In any case the code in the FAQ runs on VFP7.0. Sorry for the confusion.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top