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

by Jason @, (7504 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?

locked

Re: Calling the Done_Event with SFTP.NET

by Jasmine, (7504 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?

locked

Re: Calling the Done_Event with SFTP.NET

by Jason @, (7504 days ago) @ Jasmine

Yes, that does work:

Call SFTP_DoneEvent(sender, Nothing)

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

locked