Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comm Port Settings
Message
 
À
07/06/1998 23:51:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00105689
Message ID:
00105690
Vues:
22
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform