Disconnect from the FTP or HTTP server.
Syntax
object.Disconnect
Parameters
None.
Return Value
A value of zero is returned if the method succeeds. Otherwise,
a non-zero error code is returned which indicates the cause of the
failure.
Remarks
The Disconnect method causes the network connection to be
closed.
Example
Private Sub cmdDisconnect_Click()
Dim nError As Long
nError = FileTransfer1.Disconnect()
If nError > 0 Then
MsgBox "Disconnect error: " & nError
End If
End Sub
See Also
Connect Method
|