wodFtpDLXCom - WeOnlyDo Discussion board

wodFtpDLXCom (General questions)

by cvmbor, Saturday, May 12, 2007, 18:05 (6405 days ago)

Morning

I have a number of forms in my VB6 project which can all start FTP sessions so I moved

Dim WithEvents Sftp1 As wodFtpDLXCom
Implements IwodFtpNotify

and all the associated IwodFtpNotify methods to a class. I have a connect method which I call and it seems to work OK but does not fire any of the IwodFtpNotify methods like StateChange.

What am I missing?

Thanks

Re: wodFtpDLXCom

by wodSupport, Saturday, May 12, 2007, 18:08 (6405 days ago) @ cvmbor

Hi.

Did you set

Ftp1.Notifications = your_new_class_instance

instead of

Ftp1.Notifications = me

?

Kreso

Re: wodFtpDLXCom

by cvmbor, Saturday, May 12, 2007, 18:32 (6405 days ago) @ wodSupport

Hi.

Did you set

Ftp1.Notifications = your_new_class_instance

instead of

Ftp1.Notifications = me

?

Kreso

Thanks for replying, didn't expect a response this quickly

The Ftp1 object is in my class, which is called clsSftp, and not my form. So in the class it does not seem to like setting notifications to Me or clsSftp. What is the syntax here?

Thanks

Re: wodFtpDLXCom

by wodSupport, Saturday, May 12, 2007, 21:23 (6405 days ago) @ cvmbor

I am not sure. Try 'class'. Can you zip your code and send to techsupport@weonlydo.com? We'll try it out.

Kreso