'************************************************* 'Key strokes trapped here are sent to the Comm 'control where they are echoed back via the 'OnComm/MSCOMM_EV_RECEIVE event, and displayed 'through the ShowData procedure. '************************************************* ' Sub Term_KeyPress (KeyAscii As Integer) '--- If the port is openned, If MSComm1.PortOpen Then '--- Send the key stroke to the port MSComm1.Output = Chr$(KeyAscii) '--- Unless Echo is on, there is no need to ' let the Text control display the key. If Not Echo Then KeyAscii = 0 End If End Sub