Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to catch OnComm event ?
Message
 
 
To
18/09/2001 02:15:31
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00557428
Message ID:
00557807
Views:
11
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform