meta data for this page
  •  

ibec_ftp_Disconnect

Description

ibec_ftp_Disconnect performs a disconnection from the FTP server.

Syntax

 function ibec_ftp_Disconnect(FTPSession : variant) : boolean;

The ibec_ftp_Disconnect function performs a disconnection from the FTP server and returns TRUE in case of success. Otherwise it returns FALSE.

Example

FTPSession = ibec_ftp_OpenSession('HostName=myftpserver.com; UserName=me; Password=mysecret');
   try 
     if (ibec_ftp_Connect(FTPSession)) then
     begin
       ...
       ibec_ftp_Disconnect(FTPSession);
     end;
   finally
     ibec_ftp_CloseSession(FTPSession); 
   end;