>I need to tell when an Event has fired in an Automation Control. I'm working with the Eudora Automation Control which has several Events one of which is OnCheckMailComplete().
>
>I have a sample Visual Basic app provided by Eudora but don't know how to translate what I see into VFP. The VB app shows in (General)
>Public WithEvents app As EuApplication
>
>And then in app
>Private Sub app_OnCheckMailComplete()
> StatusBar1.Panels.Item(1).Text = "Check mail complete"
>End Sub
>
>If I issue oEudora.OnCheckMailComplete() in VFP I get the error "Name unknown". oEudora has a Method CheckMail and I want to know when it is finished (when the OnCheckMailCompleted() fires) before moving on to other code. How can I transport the above VB code to VFP?
>
You may need to use VFPCOM to allow you to wrap events with VFP code.