OnComm

This event occurs when the value of the CommEvent property changes, indicating that either a communication event or an error occurred.

Syntax

Private Sub comm_OnComm( )

Parameters

comm
Object expression that evaluates to a Comm control.

Remarks

The CommEvent property contains the numeric code of the actual error or event that generates the OnComm event. Note that setting the RThreshold or SThreshold properties to 0 disables trapping for the comEvReceive and comEvSend events, respectively.