SerialDevice.At

From Xojo Documentation

Method

SerialDevice.SerialDevice(Index as Integer) As SerialDevice

New in 2019r2

Supported for all project types and targets.

Gets the serial device by its index.

Examples

TextField1.Value = SerialDevice.At(0).InputDriverName

The following displays the names of the serial devices on the computer:

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