OwnNumber Property

Description:

The OwnNumber property returns the MSISDN number of the SIM used in the GSM modem or phone. If the modem does not support reading of MSISDN from the SIM then OwnNumber property will return blank string.

   

Usage strOwnNumber = ObjectName.OwnNumber
Value Type String
Access Mode Read Only
Valid Values
  • Blank String : If the modem does not support reading of MSISDN number from the SIM
  • Non-Blank String : The MSISDN Number of the SIM used in the 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"
' It is not necessary to execute the 'Connect' method.
' Connection state is detected internally by mCore and
' the 'Connect' method is executed accordingly.
MsgBox objSMS.IMEI
MsgBox objSMS.Manufacturer
MsgBox objSMS.Model
MsgBox objSMS.Revision
MsgBox objSMS.BatteryLevel
MsgBox objSMS.OwnNumber
' Disconnect method is executed internally
' whenever the SMS object is terminated.
Set objSMS = Nothing

   

Copyright © IG Logix Softech Pvt Ltd, All Rights Reserved