Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mabry FTP/X Control
Message
From
30/09/2004 21:24:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Mabry FTP/X Control
Miscellaneous
Thread ID:
00947799
Message ID:
00947799
Views:
58
I have been successful in getting Mabry FTP/X Control loaded as a COM object in VFP 9 Beta and have also been able to process uploads and downloads using this FTP functionality. I'm downloading some files that are pushing 30 meg on a pretty slow LAN connection, therefore, as the download progresses ... the system "looks like" it is hung with only the hourglass showing. I would like to show in a WAIT WINDOW the progress of the download. In the Mabry documentation, I have read about "Interfaces" that seem to be able to accomplish what I want to do. The examples are given in Visual Basic as follows:
-----------------------------------------------------------------------------
Private Sub IFtpXObjNotify_Progress(ByRef FtpXObject As IFtpXObj, ByVal BytesTransfered As Long)

The syntax of the Progress method has these parts:

Part :Description
FtpXObject : Required. An object reference to the FTP/X component calling this method.
BytesTransfered : Required. A long integer indicating the number of bytes transferred thus far.

Remarks
During file transfers the Progress event is periodically fired. The BytesTransferred argument lets you know how many bytes have been transferred as of the time the Progress event was fired.
-----------------------------------------------------------------------------
I've read in the FoxPro Help files about "Interfaces & COM" objects and it appears that I could incorporate this Mabry "progress" functionality using FoxPro's new "BindEvent" functionality but I'm lost on exactly what's needed to set this up in VFP and how to convert the Visual Basic code into VFP code.

Any help would be greatly appreciated. BTW .. if you read this and reply, I'm definately "over my head" so be very complete in your explanation or I'll just get further confused! :)

Thanks,
Robert
Next
Reply
Map
View

Click here to load this message in the networking platform