Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comm Port Settings
Message
 
To
07/06/1998 23:51:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00105689
Message ID:
00105690
Views:
23
>Hi all,
>I am using the MSCOMM32 to interface with a machine in VFP5.
>I can receive data form reading the comm port. I just wonder will
>it "Clear" the input buffer once the read is issued(ie
>ThisForm.CommPort.Input).
>Because I am receiving some duplicate data.
>I just wonder what is the purpose of some of the comm properties, like
>...HandShaking or ...InputLen or ...ParityReplace
>Is it neccessary to pay attention to these settings? Thanks!

Hi Alvin,
We use MSComm32 quite a bit. The input does clear the buffer. Handshaking, using CTS/RTS is more reliable than without, as long as the other device supports it also. InputLen, set to 0, reads all data in the buffer. Set to 1, reads ONE character only, etc. ParityReplace can generally be ignored except for special parity circumstances. If you have not found it yet, there is some help for mscomm in your \VFP\CTRLHELP\CTRLREF.HLP (type MSCOMM in search window)
Although the examples are in VB, the general help is good

Best Regards,
Glenn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform