From Xojo Documentation

Revision as of 19:09, 3 September 2020 by THill (talk | contribs) (Text replacement - "{{Deprecated|" to "{{DeprecatedItem|")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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