Notification interface and arrays (General questions)
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
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
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
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,
DambaOK, 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
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
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
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
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
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
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
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
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
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