Settings
Sets or Retrieves the Baud Rate. Parity, Databits and StopBit parameters.
Available at Design time and Runtime.
 |
| |
Syntax |
object.Settings = value |
| |
|
|
| |
object |
Name of the communications control. |
| |
value |
A String expression containing the parameters in this order "Baud,Parity,Databits,StopBits" |
| |
|
|
| |
Example |
object.Settings = "9600,n,8,1" |
'// Set all the parameters |
| |
|
|
|
| |
|
Text1.Text = object.Settings |
'// Retrieves the current parameters. |
| |
|
|
|
|
 |
Remarks:
Baud can be one of the following standard baud rates:
110, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 76800, 115200
Parity can be one of the following standard parity values:
N, E or O (None, Even or Odd) Other values: M or S (Mark or Space) can also be used but may not be supported by all hardware.
DataBits can be one of the following standard values:
7 or 8 (Other values such as 4, 5 or 6 can be used but may not be supported by all hardware)
StopBits can be one of the following standard values:
1 or 2 (The StopBits setting of 1.5 can also be used but may not be supported by all hardware)
|