SET CLASSLIB TO webtest ADDITIVE ox = CreateObject("WebTest") x=NEWOBJECT("myclass") ox.Show() EVENTHANDLER(ox.oleControl1.Object, x) READ EVENTSWhen I click on the form button (that navigates to my test page), it fails with a "Must specify additional parameters" error on the FileDownload event, which looks like:
PROCEDURE DWebBrowserEvents2_FileDownload(Cancel AS Logical @) AS VOID; HELPSTRING "Fired to indicate the File Download dialog is opening" * add user code here ENDPROCI looked up the events of this control in MSDN and this is the correct method signature. I also opened this DLL in the OLE/COM Object Viewer included with Visual Studio, and looked at the type library of it. This particular event looks like:
[id(0x0000010e), helpstring("Fired to indicate the File Download dialog is opening")] void FileDownload([in, out] VARIANT_BOOL* Cancel);So, as far as I can tell, the VFP code should work. If I ignore the error, it continues working and navigates to the page correctly.