Set the following properties regardless of which technique you use:ĬommPort property: Set this numeric property to the desired communications port. This article describes these two techniques and provides examples for each. The second technique requires you to poll the input buffer periodically to check for the presence of received characters. This technique allows the most flexibility and does not require extensive coding to prevent buffer over-runs. The first uses an event-driven method and does not require you to poll the serial port to check for the presence of received characters. This article gives you two techniques you can use to receive data from the serial port using the Mscomm32.ocx control.
Original product version: Visual FoxPro Original KB number: 140525 Summary This article describes two methods to use in Visual FoxPro to receive data from the serial port by using the Mscomm32.ocx control.