Closes the connection between the current computer and the FTP server (File Transfer Protocol). This connection was established by FTPConnect
// Connection to an FTP server
nConnection is int
nConnection = FTPConnect("126.96.36.199")
<Result> = FTPDisconnect(<Connection identifier>)
- True if the disconnection was performed,
- False if an error occurred. ErrorInfo returns more details.
<Connection identifier>: Integer
Connection identifier, returned by FTPConnect.
This parameter is a Variant parameter.
By default, all the FTP functions fail if the FTP server does not respond within 20 seconds. This timeout can be modified with FTPConnect
when connecting to the FTP server.
Unit examples (WINDEV): The FTP functions