Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What will use for phone numbers,chr or num
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
What will use for phone numbers,chr or num
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Divers
Thread ID:
01310413
Message ID:
01310413
Vues:
106
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform