>Hi!
>
>These are the sample codes that I wrote for the FTP Connection...
>
>************************************
>oFtp = CREATEOBJECT("Mabry.FtpXObj")
>oFtp.DebugMode = 1
>oFtp.Blocking = .T.
>oFtp.HOST = "ftp.microsoft.com"
>oFtp.LogonName = "anonymous"
>oFtp.LogonPassword = "test@test.com:
>oFtp.CONNECT
>************************************
>The Done Event Procedure is fired when the control completes an action or method in the oFtp Objects.
>
>The question is:
>
>How would I call or include my procedure in the Done Event Procedures...
>
You'd need to create a custom class in VFP that mirrors the PEMs of the Mabry control, and add code to whatever events you need to hook (in this case, DoneEvent); you could then use VFPCOM (downloadable from msdn.microsoft.com/vfoxpro/downloads) to bind the custom class. You instantiate a copy of the ActiveX control, an instance of your custom VFP class, and an instance of VFPCOM.ComUtil; you use the BindEvents method of the VFPCOM object to bind the VFP class instance to the COM Server instance. There's documentation that accompanies the download.
Since the event only triggers on completion, you have no indication of progress in the operation; you'd probably have better results using wwIPStuff from West-Wind or an ActiveX control that supplies a dialog to present progress and respond to user attempts to cancel the execution.