Sets and returns the baud rate, parity, data bit, and stop bit parameters.
Syntax
object.Settings [ = value ]
The Settings property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
value | An string expression representing the communications port settings, as described below. |
Remarks
If value is not valid when the port is opened, the MSComm 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 |
56000 |
128000 |
256000 |
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 (Default) |
The following table lists the valid stop bit values.
Setting | |
1 | (Default) |
1.5 | |
2 |
Data Type
String