Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What will use for phone numbers,chr or num
Message
From
14/04/2008 11:56:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
What will use for phone numbers,chr or num
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01310413
Message ID:
01310413
Views:
103
I am trying sending sms with a activex .
what will use for phone numbers,chr or num.what type of my text box
num or chr.
When i try with char, I have error=invalid response to submit pdu
but when i use num message sent.But i think my text box type character, but i need + for international format
LOCAL objSMS AS "mCore.SMS", strMyMessage AS String
objSMS = CREATEOBJECT("mCore.SMS")

IF objSMS.LogSize > 100

  objSMS.ClearLog(10)

ENDIF

objSMS.LogType = 2

objSMS.Port = "COM6" && Change to the Port on which your device is connected

objSMS.BaudRate = 19200
*19200

objSMS.DataBits = 8

objSMS.Parity = "N"

objSMS.StopBits = "1"

objSMS.Character = 2 && 0 – 7-Bit Default GSM, 1 – 8-Bit ANSI, 2 – 16-Bit Unicode

objSMS.SMSC = "+923330005150"


objSMS.SendDelay = 1

objSMS.SendRetry = 2

objSMS.TimeOut = 30000
objSMS.Validity = "2D"
strMyMessage = thisform.message.value&& 

num=thisform.numbers.Value

strMyMessage = messagetyp

objSMS.SendSMS('num', strMyMessage)


If Not objSMS.IsError(.t.) Then

  MESSAGEBOX("Message Sent!")

ELSE

  MESSAGEBOX("Sending failed!")

EndIf

objSMS = NULL
Next
Reply
Map
View

Click here to load this message in the networking platform