Calling the Done_Event with SFTP.NET - WeOnlyDo Discussion board

Calling the Done_Event with SFTP.NET (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Jason, Thursday, October 14, 2004, 13:55 (7346 days ago)

Is it possible to call the Done_Event from another event in the SFTP.NET component without calling a function such as ListNames? For example...I can call the Done_Event within the Done_Event by using Call Done_Event(sender, args) but that code won't work in the Connected_Event because ConnectedArgs cannot be converted to DoneArgs. Is there a way around this?

Re: Calling the Done_Event with SFTP.NET

by wodSupport, Thursday, October 14, 2004, 14:33 (7346 days ago) @ Jason

Jason,

yes this is possible. You can do, for example, this:
[code]sftp1_DoneEvent(Sender, null);[/code]
or this
[code]WeOnlyDo.Client.SFTP.DoneArgs doneargs = new WeOnlyDo.Client.SFTP.DoneArgs(Args.Error);
sftp1_DoneEvent(Sender, doneargs);[/code]

can you try if this will work for you?

Re: Calling the Done_Event with SFTP.NET

by Jason, Thursday, October 14, 2004, 14:39 (7346 days ago) @ wodSupport

Yes, that does work:

Call SFTP_DoneEvent(sender, Nothing)

That's for the VB.NET implementation. Thanks!