FTP2 Events for FoxPro
The Chilkat FTP2 ActiveX has events for progress monitoring. The events may also be used to abort an FTP upload/download, or to skip files and/or directories.
These are the events in Visual FoxPro terms:
PROCEDURE _IChilkatFtp2Events_PutProgress(percentDone AS Number) AS VOID; PROCEDURE _IChilkatFtp2Events_GetProgress(percentDone AS Number) AS VOID; PROCEDURE _IChilkatFtp2Events_AbortCheck(abortFlag AS Number) AS VOID; PROCEDURE _IChilkatFtp2Events_BeginDownloadFile(filePath AS String, skipFlag AS Number) AS VOID; PROCEDURE _IChilkatFtp2Events_EndDownloadFile(filePath AS String, numBytes AS Number) AS VOID; PROCEDURE _IChilkatFtp2Events_VerifyDownloadDir(dirPath AS String, skipFlag AS Number) AS VOID; PROCEDURE _IChilkatFtp2Events_BeginUploadFile(filePath AS String, skipFlag AS Number) AS VOID; PROCEDURE _IChilkatFtp2Events_EndUploadFile(filePath AS String, numBytes AS Number) AS VOID; PROCEDURE _IChilkatFtp2Events_VerifyUploadDir(dirPath AS String, skipFlag AS Number) AS VOID; PROCEDURE _IChilkatFtp2Events_VerifyDeleteDir(dirPath AS String, skipFlag AS Number) AS VOID; PROCEDURE _IChilkatFtp2Events_VerifyDeleteFile(filePath AS String, skipFlag AS Number) AS VOID;
The “skipFlag” and “abortFlag” args are output-only.
An example of using ActiveX events in FoxPro may be found here:
Email Events in FoxPro
Although the example is for sending email, the same programming techniques apply with the FTP2 component.
admin
0
Tags :