Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MScomm class definition
Message
De
31/05/2005 16:58:53
 
 
À
31/05/2005 16:07:03
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:
01018847
Vues:
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform