Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EventHandler Error
Message
From
02/11/2007 10:56:25
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
EventHandler Error
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01266094
Message ID:
01266094
Views:
51
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

		* Traps events for the port communication object
		IF EVENTHANDLER(THIS.oSock, THIS)
			* ? 'Event handler succeeded'
		ELSE
			* ? 'Event handler failed'
		ENDIF

	ENDPROC
Next
Reply
Map
View

Click here to load this message in the networking platform