SerialPort.Name

From Xojo Documentation

Read-Only Property (As String )
StringValue = aSerialPort.Name

Supported for all project types and targets.

The name of the serial port.

Example

This example gets the name of serial device 0.

TextArea1.Text = System.SerialPort(0).Name