dataBits

Type: Integer

The dataBits property of the JadeSerialPort class contains a value representing the number of data bits transmitted per character (or unit of transmission). This number does not include the parity bit. The default DataBits8 (3) value for the dataBits property is typically used, as the character size matches that of a byte. DataBits7 (2) is used for transmission of US-ANSI characters.

The values for the dataBits property are listed in the following table.

Constant Integer Value
DataBits5 0
DataBits6 1
DataBits7 2
DataBits8 3
DataBits16 4
DataBits16x 5

The following code fragment shows the use of the dataBits property.

vars
    sp: JadeSerialPort;
begin
    create sp transient;
    sp.dataBits := JadeSerialPort.DataBits8;