Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MScomm class definition
Message
De
31/05/2005 17:06:41
 
 
À
31/05/2005 17:02:10
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01018748
Message ID:
01018851
Vues:
38
>>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...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform