Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MScomm class definition
Message
From
31/05/2005 17:02:10
 
 
To
31/05/2005 16:58:53
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01018748
Message ID:
01018850
Views:
37
>Ok, this works, with the licensing caveat that Sergey mentioned...
>
>
>oform = CREATEOBJECT("form")
>oform.ADDOBJECT("ComReader","ComReader")
>oform.ADDOBJECT("test","cntTest1")
>EVENTHANDLER(oform.ComReader.OBJECT, oform.test)
>oform.show()
>READ EVENTS
>
>*!* definition of cntTest1:
>DEFINE CLASS cntTest1 AS CUSTOM
>  IMPLEMENTS DMSCommEvents IN "MSCommLib.MSComm"
>  PROCEDURE DMSCommEvents_OnComm() AS VOID;
>      HELPSTRING "Occurs whenever the value of the CommEvent property changes."
>    * add user code here
>    ?oform.Comreader.INPUT
>  ENDPROC
>ENDDEFINE
>
>You need the form reference.

That means I have to run the form from code?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform