Checking for a Connection

Use the IsConnected property to indicate whether or not you are presently connected to the remote site.

Syntax

Boolean Object.IsConnected

Parameters

True

The Transfer Engine is currently connected to the server.

False

The Transfer Engine is not currently connected to the server.

Example

Set MySite = CreateObject("CuteFTPPro.TEConnection")

If Cbool(MySite.IsConnected) Then

MsgBox "Connected to server:" + MySite.Host

End if

 

You can set how long the Transfer Engine will leave the data connection open after a completed transfer.