Message
From
25/03/2000 10:01:33
 
 
To
25/03/2000 02:36:01
General information
Fórum:
Visual FoxPro
Category:
Aplicações para Internet
Miscellaneous
ID da thread:
00350345
ID da mensagem:
00350387
Views:
30
>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
Previous
Responder
Mapa
View