>Does anyone know if there is a way to create a WinSock Control Array? I am writing an application that communicates with other instances that are being run on other systems. I am using one main WinSock Control on a form to act as the "Listener" and what I want to do is pass connection requests to an available idle WinSock Control located in an array. This allows for multiple (dynamic) connections.
>
>Unfortunatly when I try to "CreateObject" on the Class I devised (Based on the WinSock OCX Control) I get an error stating that the type of object cannot be place in that type of container. Here is the line of code it's crashing on...
>
>
> THIS.aWinSock(1) = CREATEOBJECT("DevSock")
>
>
>DevSock is a class based on the WinSock control. THIS.aWinSock is an array property attached to a form.
>
>Any help would be appreciated.
>
>Thank you
Ben,
I think instead you could use this.Newobject() or addObject() if array is not a must (and keep full hierarchy name in array maybe).
Cetin