Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why is MSComm.OnComm firing?
Message
De
30/11/1999 13:53:10
 
 
À
30/11/1999 12:42:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00296966
Message ID:
00297032
Vues:
27
>I've been working with the MSComm control for a few weeks now to communicate with a meter's serial port. The meter sends text strings to my serial port and I send text commands to it's serial port.
>
>My question is I've been told using the OnComm event to respond to events is not reliable in VFP but I've been doing it successfully for some time now. I thought VFP didn't raise ActiveX events. Am I mistaken. If not why is this working?
>
>Someone please clarify.
>

VFP doesn't sink ActiveX events - the event fires, but since VFP doesn't know about it, VFP doesn't take any action based on it. VFPCOM allows you to sink ActiveX events in VFP using VFP code - lets VFP respond to the occurance of the OnComm event.

Whether or not VFP does anything, the event still fires.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform