ibec_ftp_LastResponse

Description

ibec_ftp_LastResponse returns the last response of the FTP server.

Syntax

 function ibec_ftp_LastResponse(FTPSession : variant) : string;

The ibec_ftp_LastResponse function returns a string containing last response of the FTP server.

Example

 FTPSession = ibec_ftp_OpenSession('HostName=myftpserver.com; UserName=me; 
                    Password=mysecret');
    try 
      if (ibec_ftp_Connect(FTPSession)) then
      begin
        if (not ibec_ftp_ChangeDir(FTPSession, '\uploads')) then
          ibec_ShowMessage(ibec_ftp_LastResponse(FTPSession));
        ibec_ftp_Disconnect(FTPSession);
      end;
    finally
      ibec_ftp_CloseSession(FTPSession); 
    end;  

See also:
ibec_ftp examples

back to top of page
<< ibec_ftp_PutFile | IBEBlock | ibec_ftp_GetProperty >>