Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MScomm class definition
Message
From
31/05/2005 17:06:41
 
 
To
31/05/2005 17:02:10
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01018748
Message ID:
01018851
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?

Didn't you show me that you were running it from code? I'm confused...
Previous
Reply
Map
View

Click here to load this message in the networking platform