Notification interface and arrays - WeOnlyDo Discussion board

Notification interface and arrays (General questions)

by dirk, Thursday, March 24, 2011, 16:20 (4804 days ago)

I'm using the SSH component in VB6.
I want to use an array of those components, using the notification interface.

Dim SshArray(10) As wodSSHCom
Implements IwodSSHNotify

In the
Private Sub IwodSSHNotify_Disconnected(ByVal Owner As WODSSHCOMLib.IwodSSHCom)

End Sub
how can I see what index in the array did the disconnect?


dirk.

Re: Notification interface and arrays

by wodDamir, Thursday, March 24, 2011, 16:34 (4804 days ago) @ dirk

Dirk,

However, the Owner parameter in each notification method is wodSSH object that raised it. If you need the index, you can set Tag property of the component and retrieve it in the notification method.

Can you try that?

Regards,
Damba

Re: Notification interface and arrays

by dirk, Thursday, March 24, 2011, 16:46 (4804 days ago) @ wodDamir

Dirk,

However, the Owner parameter in each notification method is wodSSH object that raised it. If you need the index, you can set Tag property of the component and retrieve it in the notification method.

Can you try that?

Regards,
Damba

OK, know how that works...was hoping on something more direct :-)


dirk

Re: Notification interface and arrays

by dirk, Monday, March 28, 2011, 16:24 (4800 days ago) @ dirk

Dirk,

However, the Owner parameter in each notification method is wodSSH object that raised it. If you need the index, you can set Tag property of the component and retrieve it in the notification method.

Can you try that?

Regards,
Damba

OK, know how that works...was hoping on something more direct :-)


dirk

I was a little quick in saying that I know that .... when I initiate the connection, I do not have access to the owner.tag part....and it's when I initiate the connection that I have all the extra info on it...so how do I do it then?

Re: Notification interface and arrays

by woddrazen, Monday, March 28, 2011, 16:34 (4800 days ago) @ dirk

Dirk,


When you call Owner parameter inside wodSSH Events, you cannot access only Tag Property or all other wodSSH properties and methods?


Drazen

Re: Notification interface and arrays

by dirk, Monday, March 28, 2011, 16:42 (4800 days ago) @ woddrazen

Dirk,


When you call Owner parameter inside wodSSH Events, you cannot access only Tag Property or all other wodSSH properties and methods?


Drazen

I want to be able to access it before the events (also I'm using the notification interface).
Within my code I set the properties and then connect. At that point (just before the connect) I want to be able to set the tag stuff.

Re: Notification interface and arrays

by woddrazen, Monday, March 28, 2011, 17:32 (4800 days ago) @ dirk

Dirk,


Currently there is no Tag Property inside wodSSH. We will add it and let you know when this is done.


Drazen

Re: Notification interface and arrays

by dirk, Monday, March 28, 2011, 17:34 (4800 days ago) @ woddrazen

Dirk,


Currently there is no Tag Property inside wodSSH. We will add it and let you know when this is done.


Drazen


For me the purpose is to have an array of components and to be able within the events to identify what array-elemet is causing the events (or notifications).

Re: Notification interface and arrays

by woddrazen, Tuesday, March 29, 2011, 10:42 (4799 days ago) @ dirk

Dirk,


We added Tag Property to wodSSH. Can you please try it out and let us know how it goes?


Drazen

Re: Notification interface and arrays

by dirk, Tuesday, March 29, 2011, 10:43 (4799 days ago) @ woddrazen

Dirk,


We added Tag Property to wodSSH. Can you please try it out and let us know how it goes?


Drazen


Can you send me the update?

Re: Notification interface and arrays

by wodDamir, Tuesday, March 29, 2011, 23:30 (4799 days ago) @ dirk

Dirk,

I just sent you an URL you can use to download latest version through our helpdesk.

Can you please check it out?

Regards,
Damba

Re: Notification interface and arrays

by dirk, Tuesday, March 29, 2011, 23:32 (4799 days ago) @ wodDamir

Dirk,

I just sent you an URL you can use to download latest version through our helpdesk.

Can you please check it out?

Regards,
Damba


OK will try it tomorrow....

Re: Notification interface and arrays

by dirk, Friday, April 01, 2011, 11:34 (4796 days ago) @ dirk

sorry for the delay
the first tests show it to be working fine....
will implement it into my real code now

thanks for the quick update