ParityReplace
Sets or Retrieves the character that will be used to replace bytes which have failed a parity check.
Available at design time and runtime.
MSComm32 and Comm32 have identical behavior
 |
| |
Syntax |
object.ParityReplace = value |
| |
|
|
| |
object |
Name of the communications control. |
| |
value |
A character/string expression indicating the ParityReplace character |
| |
|
|
| |
Example |
object.ParityReplace = "?" |
'// Set the value to the default. |
| |
|
|
|
| |
|
object.ParityReplace = "" |
'// An empty string |
| |
|
|
|
| |
|
Text1.Text = object.ParityReplace |
'// Retrieves the value |
| |
|
|
|
|
 |
Remarks:
If parity is enabled (see the object.Settings property) then the com port will complete a parity check on each byte as is it received. If this property is enabled then any byte failing that parity check will be ignored and replaced by the ParityReplace character. |