Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get return string from MSCOMM
Message
From
10/02/2003 17:46:49
 
 
To
10/02/2003 17:11:17
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00751209
Message ID:
00751697
Views:
24
Hi Peter,

A few things to try:

Get rid of the PUBLIC variable(s) and use a form property instead.
Don't wait for 5 characters before saving the .input to the form property - grab each character as it arrives, then test the string for the desired termination (CR, LF, string content, whatever).
Are you using VFP7? If so, try a INKEY(.1) prior to your DOEVENTS call to give it something to do. And play with the value.
I also see no reason in your code to continually open and close the port, at least between sends. You may have your reasons :-)
Last but not least, don't attempt any real debugging of this with the Debugger open. It may well be affecting your results. Timing things, you know...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform