Settings

Sets and returns the baud rate, parity, data bit, and stop bit parameters.

Syntax

object.Settings [ = value ]

The parts of the Settings property syntax are described in the following table.

Part Description
object An object expression that evaluates to an object.
value An string expression representing the communications port settings, as described below.

Remarks

If value is not valid when the port is opened, the Comm control generates error 380 (Invalid property value).

Value is composed of four settings and has the following format:

"BBBB,P,D,S"

Where BBBB is the baud rate, P is the parity, D is the number of data bits, and S is the number of stop bits. The default value of value is:

"9600,N,8,1"

The following table lists the valid baud rates.

Setting
110
300
600
1200
2400
9600 (Default)
14400
19200
28800
38400 (reserved)
56000 (reserved)
128000 (reserved)
256000 (reserved)

The following table describes the valid parity values.

Setting Description
E Even
M Mark
N (Default)
None
O Odd
S Space

The following table lists the valid data bit values.

Setting
4
5
6
7
8

The following table lists the valid stop bit values.

Setting
1 (Default)
1.5
2

Data Type

String