THIS is a form and oSock is an OLE control. Getting an "invalid count or funtion" error on the EventHandler line. When THIS was a Session instead of a Form, it worked. But there were other issues having it as Session, so I went with Form as the container. Everytime I change something in these classes, something else breaks. Any help appreciated.
PROCEDURE SETUP() AS Boolean
IF EVENTHANDLER(THIS.oSock, THIS)
ELSE
ENDIF
ENDPROC