Setting the port for a connection

Description

Use the Port property to set or retrieve the value for the Port on the server when you connect.

 

Syntax

int Object.Port

 

Example

Set MySite = CreateObject("CuteFTPPro.TEConnection")

MySite.Protocol = "FTP"

MySite.Host = "ftp.cuteftp.com"

MySite.Port = 21

MySite.Login = "username"

MySite.Password = "password"

MySite.Connect