ThbComPort.Handle
Unit: hbComm
 

The handle to the commonication port. If TThbComPort is used in context with ThbTapiLine, this property is set to the communication handle of ThbTapiCall, otherwise the handle is set when the port is opened.

procedure TForm1.hbTapiLine1Connected(Sender: ThbTapiLine; Call: ThbTapiCall);
begin
  Call.Comm.Enabled := True;
  if Call.Comm.Available then
  begin
    hbComPort1.Handle := Call.Comm.Handle;
    hbComPort1.Active := True;
  end;
end;

Availability

Design-Time: None / Run-Time: Read, Write

Declaration

property Handle: THandle;

See Also

ThbComPort.OnReceive, Write, ThbTapiLine.OnConnected