Re: Lots of users now having this problem - WeOnlyDo Discussion board

Re: Lots of users now having this problem (General questions)

by ltoews, Saturday, March 28, 2009, 09:30 (5500 days ago) @ woddrazen

Drazen,

Believe me, I understand the difficulty of not being able to duplicate the problem!

Here's the code that I use to set the LicenseKey. cnx is an object variable that contains various parameters for the connection. I've emailed you the actual license key that I use.

With Ftp1
If .State = Connected Then .Disconnect
.LicenseKey = XXXX-XXXX-XXXX-XXXX
.HostName = strHost
.Login = cnx.FTP_Username
.Password = cnx.FTP_Password
.Protocol = IIf(cnx.FTP_SecureFTP, SFTP, FTP)
.Port = cnx.FTP_Port ' this has to be set AFTER setting the protocol
.Timeout = 30
.Blocking = True
.ProxyHostname = cnx.FTP_Proxy
.Tag = cnx.FTP_RootFolder ' original root folder -- restore to this on disconnect
.Connect
strInitialRemotePath = .RemotePath ' get initial home path
End With

The above code is part of a function called FTPConnect, and it is called before any ftp activity. FTPConnect is on a form called frmFTP, which is unloaded when the ftp activity is complete. The following code is in frmFTP.Unload.

If Not Ftp1 Is Nothing Then
Ftp1.Disconnect ' in case this hasn't already been done
Set Ftp1 = Nothing
End If


Complete thread: