>Thanks again for your help. After changing to "Sock = newobject('OleTest','OleTest1.vcx')", now I am getting this error :
>
>"Object class is invalid for this container". Have I made a mistake in creating the class or selecting the right Insert control ???
Sorry, I should have tried myself first.
Here is what I just did:
1. Created a new class based on container.
2. Added Winsock control and named it Sock.
3. NewObject now works, but in your code you would need to use
Sock.Sock instead of just Sock. If you're accessing its properties and methods using with /endwith construct it would be easy to change.
If it's not broken, fix it until it is.
My Blog