System.SerialPortCount
From Xojo Documentation
This item was deprecated in version 2019r2. Please use SerialDevice.Count as a replacement. |
Read-Only Property (As Integer )
Returns the number of serial ports available.
Example
The following displays the names of the serial ports on the computer: