由于 Bug,在使用 Internet Transfer Control 时,Username 及 Password 必须设定在 URL 之后,否则无效!以下的程序码是错的:
Inet1.Password = "Chicken_Feet" Inet1.UserName = "JohnnyW" Inet1.URL = FTP://ftp.32X.com Inet1.Text = Inet1.OpenURL
但是如果改成以下之程序,将 URL 放到最前面,就可以正常执行:
Inet1.URL = FTP://ftp.32X.com Inet1.Password = "Chicken_Feet" Inet1.UserName = "JohnnyW" Inet1.Text = Inet1.OpenURL  
|