Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to catch OnComm event ?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00557428
Message ID:
00557648
Vues:
19
>It doesn't work ...
>I want event, which fired when ComPort receive data. I do it with timers yet, but I need other method.
>Pavel

The OnComm event fires when data is received. If you add code to the OnCOmm event, it will execute when the event fires. You can add code to log information or whatever. You should also call the Input method when the event fires to empty the input buffer.

You can add the code to a subclass of the ActiveX control or if you drop the control directly on a form, in the OnComm event in the form designer.

If the event is not firing, most likely data is not reaching the control.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform