Serial.Parity
From Xojo Documentation
| This item was deprecated in version 2019r2. Please use SerialConnection.Parity as a replacement. |
Property (As Integer )
aSerial.Parity = newIntegerValue
or
IntegerValue = aSerial.Parity
Supported for all project types and targets.
or
IntegerValue = aSerial.Parity
Supported for all project types and targets.
The parity that is 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 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
