Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MScomm class definition
Message
De
31/05/2005 15:01:28
 
 
À
31/05/2005 14:45:37
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:
01018794
Vues:
29
I'm sorry - wrong code :-(

That should be ocommform.comminput.input to read the port. Here is the basic definition that uses a form class property "inbuffer" to hold the data. It could just as easily be a property of your control subclass.
DEFINE CLASS incomm AS CUSTOM
  IMPLEMENTS dmscommevents IN mscomm32.ocx
  PROCEDURE dmscommevents_oncomm
    WITH ocommform
      IF .comminput.commevent = 2
        .inbuffer = .inbuffer + .comminput.INPUT
    ENDWITH
  ENDPROC
ENDDEFINE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform