|
|
|
|
|
- Overview
- The variables of the SMS structure
- Differences between GO mode and runtime
The SMS structure is a preset structure of WLanguage (no declaration is required). This structure is used to create and read an SMS. Remark: To reset all the variables of the SMS structure to zero, use SMSReset. The variables of the SMS structure The structure contains the following members: | | Attachment | Character string corresponding to the path of the attachment to associate to the message. If this variable is specified, the message sent will be an MMS. Caution: To be sent, the attachment must be located in the shared memory of the device (e.g. SD card). Remark: This variable is used only when sending SMS with SMSRunApp. It is ignored in all other cases. | CountryPrefix | Character string containing the international prefix (33 by default for France). If the recipient number starts with "0" and if a national prefix is specified, "0" will be replaced with this prefix. If the national prefix is not specified, use a number in international format. For example, 1612345678. | Index | Integer corresponding to the index of the incoming SMS. | Message | Character string containing the outgoing message or the incoming message (up to 160 characters). | Number | Character string containing the recipient number or the sender number. | NumberType | Indicates the type of number used:- smsInternationalNumber (default value): these numbers can be accessed from anywhere and they are in 06.xx.xx.xx.xx format
- smsNationalNumber: short numbers, accessible within the country.
| ReceiveDate | Date and time when the SMS was received. | Retry | Boolean (True by default) Indicates whether the message must be sent on a regular basis if no reception. |
Differences between GO mode and runtime In GO mode (simulation on the development computer), a WLanguage error occurs when a variable of the SMS structure is used.
Related Examples:
|
Cross-platform examples (WINDEV Mobile): WM Managing Contacts
[ + ] This example presents the management of contacts for Android et iOS. It is used o: - list the contacts found on the phone - call the contacts - send SMSs to the contacts - ...
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|