SerialConnection.Device

From Xojo Documentation

Property (As SerialDevice )
aSerialConnection.Device = newSerialDeviceValue
or
SerialDeviceValue = aSerialConnection.Device

Supported for all project types and targets.

Used to identify the serial device to which the SerialConnection control will communicate.

Example

The code below is from Examples/Communication/Serial/Line State Change Tester:

' Populate the popup menu with all of the
' serial devices the system has installed.

For i As Integer = 0 To SerialDevice.LastIndex
PopupMenu1.AddRow(SerialDevice.At(i).Name)
Next