The DataBits enumeration specifies the
DataBits property value.
Namespace: mCore
Assembly: mCoreLib (in mCoreLib.dll)
| Member Name | Description |
| Four | Sets the serial communication data byte size to 4 bits per byte |
| Five | Sets the serial communication data byte size to 5 bits per byte |
| Six | Sets the serial communication data byte size to 6 bits per byte |
| Seven | Sets the serial communication data byte size to 7 bits per byte |
| Eight | Sets the serial communication data byte size to 8 bits per byte |
mCore.GeneralException
| Visual Basic |
| Public Class MyClass Public WithEvents objSMS As New mCore.SMS Public Sub ModemConnect() Try objSMS.Port = "COM1" objSMS.BaudRate = mCore.BaudRate.BaudRate_19200 objSMS.DataBits = mCore.DataBits.Eight objSMS.StopBits = mCore.StopBits.One objSMS.Parity = mCore.Parity.None objSMS.FlowControl = mCore.FlowControl.RTS_CTS objSMS.Connect() Catch ex As mCore.GeneralException MsgBox(ex.Message, MsgBoxStyle.Critical, "mCore Demo") Catch ex As Exception End Try End Function End Class |
| C# |
| class MyClass { public mCore.SMS objSMS = new mCore.SMS(); public static void ModemConnect() { try { objSMS.Port = "COM1"; objSMS.BaudRate = mCore.BaudRate.BaudRate_19200; objSMS.DataBits = mCore.DataBits.Eight; objSMS.StopBits = mCore.StopBits.One; objSMS.Parity = mCore.Parity.None; objSMS.FlowControl = mCore.FlowControl.RTS_CTS; objSMS.Connect(); } catch
(mCore.GeneralException e) |