March 4, 2021
Hot Topics:

Using the Internet Transfer Control: Part 3

  • By Sam Huggill
  • Send Email »
  • More Articles »

Lets start off with the basics first: connecting.

The first thing we need to do is to set the Protocol property of the Inet control to icFTP. We also need to specify a server address (in the form of a URL) and a username and password to login. If the FTP site doesn't require a username and password, then you can just leave them blank. All of these properties can be set using the Property Page in the IDE, or you can set them at run time:

With Inet1
    .Protocol = icFTP
    .URL = "localhost"
    .Username = ""
    .Password = ""
End With

You may have noticed that there is no specific Connect command in the Inet control, so what we have to do is use the Execute command, which allows us to execute a special FTP command.

(If you have ever used DOS before then you will be familiar with some of the commands used)

Page 2 of 6

This article was originally published on November 20, 2002

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date