Hi
We are trying to use the ActiveX object that ships with ConnectDirect.
It works fine if we create a form, add the control to the form and then use that as the reference.
i.e.
loForm = CreateObject( 'wrapper')
loConnectDirect = loForm.oConnectDirect
We can then set properties on the loConnectDirect object and execute the file transfer.
We need to be able to Bind Events to the control. If we use the code that comes on the VFP HomePage at Microsoft it returns no output.
So, we try it with a direct object creation using the path to the object as displayed in the form properties
i.e.
loConnectDirect = CreateObject( 'ConnectDirect: Submit') &&something like that - can't remember the exact syntax.
The ExportEvents() method of 'vfpcom.comutil' outputs a file with the 3 methods in it.
We can now bind that to the loConnectDirect object.
Our problem occurs when we try to set properties on the object - we get error boxes with Catastophic Errors !
So our problem(s) are
(1) via the Form created ActiveX object we cannot see the Events and cannot bind our code to them
(2) via the Directly created object we can see the Events and bind them, but we can't set properties or use the methods.
Is there any way we can solve either of the problems? Get the Events exposed in (1) or the properties in (2).
Hopefully the above makes some sense!
TIA
regards
Ian