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:
00557807
Vues:
9
>>The OnComm event fires when data is received.
>Not for me :-)
>I create simple form.
>Add MsComm, CommandButton, TextBox.
>form.init()
>...set mscomm properties
>CommandButton.Click()
>thisform.TextBox1.value=thisform.mscomm.Input()
>MsComm.OnComm()
>wait "have data, Pavel" wind nowa
>
>and then send "hello" into CommPort ...
>CommandButton.click() say "hello" into TextBox, but OnComm NOT fired.
>Pavel

Pavel,
From VFP Help, The AutoYield property should be set to false (.F.) when a form contains an ActiveX control.

What is your _VFP.AutoYield property set to?
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