meta data for this page
ibec_ftp_CloseSession
Description
ibec_ftp_CloseSession destroys an FTP session object created with the ibec_ftp_OpenSession function.
Syntax
function ibec_ftp_CloseSession(FTPSession : variant) : variant;
The ibec_ftp_CloseSession function destroys an FTP session object specified by the FTPSession variable and always returns NULL. The function doesn't perform any network operations, you should call the ibec_ftp_Disconnect functions first if there is an active connection.
Example
FTPSession = ibec_ftp_OpenSession('HostName=myftpserver.com; UserName=me; Password=mysecret'); try ... finally ibec_ftp_CloseSession(FTPSession); end;