dcsimg
December 7, 2016
Hot Topics:

Using the Internet Transfer Control: Part 3

  • November 19, 2002
  • 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
    .Cancel
    .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



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

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

Sitemap | Contact Us

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