The Character property specifies the type of character encoding to be used for sending text messages.
| Usage |
|
| Value Type | Integer |
| Access Mode | Read/Write |
| Valid Values |
|
| Default Value | 0 |
| Remarks |
|
| 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" objSMS.Character = 0 objSMS.SendSMS "+919873094767", "Hello World!" If objSMS.ErrorCode = 0 Then MsgBox "Message Sent!" Else MsgBox "Error " & CStr(objSMS.ErrorCode) & _ ": " & objSMS.ErrorDescription End If Set objSMS = Nothing |