Settings

This property sets and returns the baud, parity, data bit, and stop bit parameters.

Syntax

object.Settings [= value]

Parameters

object
Object expression that evaluates to a Comm control.
value
String expression that represents the communications port settings.

Remarks

If value is not valid when you open the port, the Comm control generates error 380 (invalid property value).

The following code sample shows the composition and format of value.

"BBBB,P,D,S"

BBBB is the baud, P is the parity, D is the number of data bits, and S is the number of stop bits. The following code sample shows the default value of value.

"9600,N,8,1"

The following list shows the valid baud:

110 19,200
300 28,800
600 38,400
1200 56,000
2400 128,000
9600 (default) 256,000
14,400  

The following table shows the valid parity values.

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

Valid data bit values include 4, 5, 6, 7, and 8, which is the default. Valid stop bit values inlcude 1, which is the default, 1.5, and 2.