Re: connection problems with ActiveX demo - WeOnlyDo Discussion board

Re: connection problems with ActiveX demo (General questions)

by Patrick Rock, Tuesday, July 11, 2006, 23:14 (6710 days ago) @ wodSupport

Here is my code:

ObjFTPSSH=Createobject( WeOnlyDo.wodFtpDLXCom.1 )
ObjFTPSSH.HostName = pc_host
ObjFTPSSH.Login = pc_usr
ObjFTPSSH.Password = pc_pwd
ObjFTPSSH.Port = 22
ObjFTPSSH.Blocking = .T.
ObjFTPSSH.Protocol = 1
ObjFTPSSH.Timeout = 60
pn_connect = ObjFTPSSH.Connect()
pc_lstdir = ObjFTPSSH.ListDir( / )
ObjFTPSSH.Disconnect

The values for pn_connect and pc_lstdir both return .Null. I expected that the first would return a numeric value and the second a string (even an empty string) value.

I have checked my host name, user name, and password, but I'm getting nothing at the moment.

You mention that you get 0 value, from where?
If you are referring to ErrorCode in for example
Connected Event that this mean that you don't
have error and successfully connect to your server.

As I said, I was expecting a 0 value from .Connect() if the connection had failed, but not a Null value.


Complete thread: