SerialDevice.Count

From Xojo Documentation

Shared Property (As Integer)

The property is read-only.

IntegerValue = aSerialDevice.Count

Returns the number of serial devices available.

Example

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