Serial.Parity

From Xojo Documentation

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

Supported for all project types and targets.

The parity that is 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 parity. They are:

Value Class Constant
0 ParityNone
1 ParityOdd
2 ParityEven

Example

This example sets the parity in the Open event of the window.

Serial1.Parity = Serial.ParityOdd