PRB: Can't Receive Data When Using MSCOMM.OCX ControlLast reviewed: January 23, 1996Article ID: Q141071 |
The information in this article applies to:
- Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 16-bit and 32-bit, for Windows, version 4.0
SYMPTOMSWhile performing serial communications by using the MSCOMM16.OCX or MSCOMM32.OCX control, you can get it to connect and send data, but not receive data.
CAUSEYou do not have the correct handshaking enabled.
RESOLUTIONTo resolve this problem when using MSCOMM.OCX, set the RTSEnable property to True or add the following line of code to your program when you initialize the MSCOMM control:
MSComm1.RTSEnable = True MORE INFORMATIONThe following information on the RTSEnable property comes from the Custom Control Help file (CTRLREF.HLP):
(RTSEnable) Determines whether to enable the Request To Send (RTS) line. Typically, the Request To Send signal that requests permission to transmit data is sent from a computer to its attached modem. When RTSEnable is set to True, the Request To Send line is set to high (on) when the port is opened and low (off) when the port is closed. The Request To Send line is used in RTS/CTS hardware handshaking. The RTSEnable property allows you to manually poll the Request To Send line if you need to determine its state. |
Additional reference words: 4.00 vb4win vb4all comm communication custom
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |