This property sets and returns the character that replaces an invalid character in the data stream when a parity error occurs.
object.ParityReplace [= value]
When using the Comm control, you can transmit a parity bit along with a specified number of data bits to provide a small amount of error checking. When you use a parity bit, the Comm control adds up all the bits that are in the data and tests the sum as being odd or even according to the parity setting used when the port was opened. If the Comm control finds an error, it replaces the invalid character with the one specified in ParityReplace.
By default, the Comm control uses a question mark (?) character to replace invalid characters. If you set ParityReplace to an empty string (""), you disable replacement of the character where the parity error occurs. The OnComm event is still fired and the CommEvent property is set to 1,009.
In a byte-oriented operation, use a character in ParityReplace. The character must be single-byte. You can specify any ASCII character code with a value from 0 through 255.