Notification interface and arrays (General questions)

by dirk @, (5152 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.

locked

Re: Notification interface and arrays

by wodDamir @, (5152 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

locked

Re: Notification interface and arrays

by dirk @, (5152 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

locked

Re: Notification interface and arrays

by dirk @, (5148 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?

locked

Re: Notification interface and arrays

by woddrazen @, (5148 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

locked

Re: Notification interface and arrays

by dirk @, (5148 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.

locked

Re: Notification interface and arrays

by woddrazen @, (5148 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

locked

Re: Notification interface and arrays

by dirk @, (5148 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).

locked

Re: Notification interface and arrays

by woddrazen @, (5147 days ago) @ dirk

Dirk,


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


Drazen

locked

Re: Notification interface and arrays

by dirk @, (5147 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?

locked

Re: Notification interface and arrays

by wodDamir @, (5147 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

locked

Re: Notification interface and arrays

by dirk @, (5147 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....

locked

Re: Notification interface and arrays

by dirk @, (5144 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

locked