Difference between revisions of "Serial.SerialPort"
From Xojo Documentation
(SMBot: new page by automated transformation) |
m (Text replacement - "{{Deprecated|" to "{{DeprecatedItem|") |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{DeprecatedItem|version=2019r2|replacement=[[SerialConnection.Device]]}} | ||
{{PropertyBox | {{PropertyBox | ||
| name=SerialPort | | name=SerialPort | ||
Line 7: | Line 8: | ||
| platform=all | | platform=all | ||
}} | }} | ||
− | Used to identify the serial port to which the Serial control will communicate. | + | {{Description |
+ | |text = Used to identify the serial port to which the Serial control will communicate. }} | ||
+ | |||
+ | ==Example== | ||
+ | |||
+ | The code below is from Examples/Communication/Serial/Line State Change Tester: | ||
+ | |||
+ | <rbcode> | ||
+ | ' Populate the popup menu with all of the | ||
+ | ' serial ports the system has installed. | ||
+ | Dim count As Integer | ||
+ | count = System.SerialPortCount | ||
+ | |||
+ | For i As Integer = 0 To count - 1 | ||
+ | PopupMenu1.AddRow(System.SerialPort(i).Name) | ||
+ | Next | ||
+ | </rbcode> |
Latest revision as of 19:09, 3 September 2020
![]() |
This item was deprecated in version 2019r2. Please use SerialConnection.Device as a replacement. |
Property (As SerialPort )
aSerial.SerialPort = newSerialPortValue
or
SerialPortValue = aSerial.SerialPort
Supported for all project types and targets.
or
SerialPortValue = aSerial.SerialPort
Supported for all project types and targets.
Used to identify the serial port to which the Serial control will communicate.
Example
The code below is from Examples/Communication/Serial/Line State Change Tester: