We have this code and if I remove the DOEVENTS then it causes intermittent issues in that the socket state is usually not 7 (active). I am looking to remove the DOEVENTS because it causes problems with some hotkeys (ON KEY LABEL). Leaving the DOEVENTS and fixing the hotkey issue is an option also. Any ideas?
DO WHILE .State < 7
DOEVENTS
IF .State = 9
ENDIF
ENDDO