|
|
|
|
- Managing errors
- Differences between GO mode and run time
- Required permissions
- Folder of SMSs sent
- SMS sent by the user
SMSSend (Function) In french: SMSEnvoie Sends an SMS. The characteristics of this SMS have been specified in the SMS structure. New in version 25
// Initialize the SMS structure for a standard number SMS.Number = "0610203040" SMS.Message = "I am sending SMSs with WINDEV Mobile!"
// Send the SMS ResSend is boolean = SMSSend()
// Error occurred? IF ResSend = False THEN Error(ErrorInfo(errMessage)) END
// Initialize the SMS structure for a short number SMS.Number = "3040" SMS.Message = "I am sending SMSs with WINDEV Mobile!" SMS.NumberType = smsNationalNumber
// Send the SMS ResSend is boolean = SMSSend()
// Error occurred? IF ResSend = False THEN Error(ErrorInfo(errMessage)) END
Syntax <Result>: Boolean - True if the SMS was sent,
- False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
Remarks Managing errors SMSSend generates an error in the following cases: - the recipient number is invalid,
- the message to send is too long,
- the SMS center is overloaded.
- ...
Differences between GO mode and run time In GO mode (simulation on the development computer), a WLanguage error is generated during the call to SMSSend.
Related Examples:
|
Mobile (WINDEV Mobile): Pocket Managing Contacts
[ + ] This example presents the management of contacts in Pocket PC. The following topics will be presented in this example: 1/ the loopers 2/ the use of queries 3/ sending SMSs 4/ sending emails 5/ the phone call.
|
|
Mobile Windows (WINDEV Mobile): PC Sending SMS
[ + ] This example is used to create SMSs on a computer and to transfer them to a Pocket PC or to a Smartphone equipped with a SIM card in order to send them. To use the PC Sending SMSs example, the Pocket Sending SMSs example must be installed on the Pocket PC or on the Smartphone. A synchronization can be performed when the application is started to check whether SMSs must be sent or not.
|
|
Mobile Windows (WINDEV Mobile): Pocket Sending SMS
[ + ] This example is used to send SMSs created from the PC Sending SMSs example. You also have the ability to write and send SMSs from the Pocket application. How do I send an SMS from a Pocket PC or from a Smartphone with WINDEV Mobile? All you have to do is use the SMS.XXX variables and the function named SMSSend(): SMS.Message = "This is an SMS" SMS.Number = "0612345678" SMSSend()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|