Serial.Stop

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aSerial.Stop = newIntegerValue
or
IntegerValue = aSerial.Stop

Supported for all project types and targets.

The number of stop bits being used.

Notes

fa-info-circle-32.png
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