SerialConnection.Device

From Xojo Documentation

Revision as of 23:41, 27 June 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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