Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MScomm class definition
Message
From
31/05/2005 16:58:53
 
 
To
31/05/2005 16:07:03
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01018748
Message ID:
01018847
Views:
36
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform