From Xojo Documentation

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

Property (As Integer )
aSerial.Bits = newIntegerValue
IntegerValue = aSerial.Bits

Supported for all project types and targets.

The number of bits. This can be set in the IDE or via code.


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.

The following class constants are available:

Value Class Constant
0 Bits5
1 Bits6
2 Bits7
3 Bits8


The number of bits can be set in the IDE or by code, for example, in the Open event of the window. For example:

Serial1.Bits = Serial.Bits7