Disconnect Method

Disconnect from the FTP or HTTP server.

Syntax

object.Disconnect

The object placeholder represents an expression that evaluates to a FileTransfer object.

Return Type

Integer

Remarks

The Disconnect method causes the network connection to be closed.

This method will return value of zero if the action was successful. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

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


Copyright © 2008 Catalyst Development Corporation. All rights reserved.