Yes, put:
WAIT WINDOW NOWAIT 'Gotcha!!'
in the OnComm method... :)
If you meant the event codes/ errors, then they are in the CommEvent property of the control. OnComm event is triggered when the value of CommEvent property changes (and then the code in the OnComm method is run...)
Doru