From Xojo Documentation

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

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

Supported for all project types and targets.

The parity that is being used.


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


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

Serial1.Parity = Serial.ParityOdd