Serial.Stop
From Xojo Documentation
This item was deprecated in version 2019r2. Please use SerialConnection.StopBit as a replacement. |
Property (As Integer )
aSerial.Stop = newIntegerValue
or
IntegerValue = aSerial.Stop
Supported for all project types and targets.
or
IntegerValue = aSerial.Stop
Supported for all project types and targets.
The number of stop bits being used.
Notes
Changing property values does not automatically change the state of the hardware, you must call Reset or re-Open the connection in order for the change to take effect. |
You can use the following class constants instead of the numbers to check or set the number of stop bits. They are:
Value | Class Constant | Description |
---|---|---|
0 | StopBits1 | 1 stop bits |
1 | StopBits15 | 1.5 stop bits |
2 | StopBits2 | 2 stop bits |
Example
This example sets the number of Stop bits in the Open event of the window.
Serial1.Stop = Serial.StopBits1