DataBits Property

Description:

The DataBits property specifies the communication Data Bits size between GSM Modem or Phone and the computer.

   

Usage ObjectName.DataBits = intDataBits
Value Type Integer
Access Mode Write
Valid Values 4, 5, 6, 7, 8
Default Value 8
Remarks For proper communication between GSM Modem and the computer, the values set in the properties BaudRate, Parity, DataBits and StopBits should be same as settings of these communication parameters in the GSM Modem.

Usage Example:

Visual Basic / ASP (VBScript)
Dim objSMS As mCore.SMS
Set objSMS = New mCore.SMS
' You can also use Set objSMS = CreateObject("mCore.SMS")
' In case of ASP (VBScript) to create object use
' Set objSMS = Server.CreateObject("mCore.SMS")
' In ASP use Response.Write instead of MsgBox
objSMS.Port = "COM2"
objSMS.BaudRate = 57600
objSMS.Parity = "N"
objSMS.DataBits = 8
objSMS.StopBits = "1"
If objSMS.Connect Then
     MsgBox "Connected Successfully!"
     objSMS.Disconnect
Else
     MsgBox "Error " & CStr(objSMS.ErrorCode) & _
            ": " & objSMS.ErrorDescription
End If
Set objSMS = Nothing

   

Copyright © IG Logix Softech Pvt Ltd, All Rights Reserved