Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems reading from serial port with MSCOMM32
Message
De
05/11/1998 00:49:26
Paul Harker
Harker Enterprises, Inc.
Idaho Falls, Idaho, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00154570
Message ID:
00154696
Vues:
20
>Hello everybody.
>I am trying to use the MSCOMM32 control to connect to
>a service. I am suppose to connect, wait for an
>"Send ID now." and send what I need, I made a function
>to do that,it works fine, but when I call then function from within
>the application it never works.
>The problem is that I am working in the darkness, because
>I don't know how to read the "Send ID now" after I connect.
>I try to use the "Input" property of the control and all it
>shows is modem status like "CONNECT 1200,8,N,1", or whatever
>I put in the "output" property, like "ATDT 555-1212".
>
>What I am missing ?
>=THIS.thanks("in advance")

Luis,

The RS232 control has different modes to read data from the comm port. You can read a number of characters at a time, or the full buffer(better check that no data has been set for a certain length of time). Also, You need to know the issues (bugs) in woring with the control (ie, buffer size more than 2K, and parity replace character issues). Make sure you have the help file with all the info on MSCOMM32.OCX. It shipped with VFP 3.0, but not 5.0. Let me know if you need some sample code.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform