|
Summary
Abort directory listing in progress.
Syntax
Boolean AbortDir ()
Description
The AbortDir method aborts a directory listing in progress. This method stops the application from receiving any more entries in the OnList event, which was invoked by the ListDir method or
by setting the DirAction property to DIR_ACTION_LIST.
The AbortDir method takes no parameters and returns a boolean. If the directory listing in progress is successfully aborted, then the method returns True; otherwise, it returns False. The application
should ensure that the method was successfully executed by checking the return value. The method also sets the LastResult property. The value of the LastResult property can be checked to determine if
any error occurred.
Calling this method is equivalent to setting the DirAction property to DIR_ACTION_ABORT.
Example
Result = FTPClient.AbortDir () If Result = False Then MsgBox "Cannot abort directory listing", 64, "Sample Program" End If
|