>Thanks to previous threads I am using IE5 automation in my foxpro application, but I can not figure out how to use the events. Below is the VB Example. Can anyone explain how to trap the event in VFP or show me a sample?
>
>Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
> If (pDisp Is WebBrowser1.Object) Then
> Debug.Print "Document is finished loading."
> End If
>End Sub
>
>Thanks!!
>Doug
The above works in VB because at some other point in the VB code, the a With Events command was issued to "bind" the events of the COM object to local methods.
In VFP, we can do this only with the VFPCOM utility's "BindEvents" method. You can get the VFPCOM utility from the MS website at msdn.microsoft.com/vfoxpro.
Erik Moore
Clientelligence