Abort

Declaration: TFtpConnection.Abort: integer;
The method Abort instructs the FTP server to interrupt the current FTP service request, and any associated transfer of data.

The function returns the following error codes:

 0 ... everything is OK
-1 ... not connected
-2 ... undefined error