ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / SMS functions
  • Overview
  • The variables of the SMS structure
  • Differences between GO mode and runtime
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
The SMS structure is a preset structure of WLanguage (no declaration is required). This structure is used to create and read an SMS.
Note: To reset all variables in the SMS structure, use function SMSReset.
WINDEVLinux The SMS structure is used to generate QR Codes (when printing a bar code for example).
The variables of the SMS structure
The structure contains the following members:
CountryPrefixCharacter 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.
IndexInteger corresponding to the index of the incoming SMS.
MessageCharacter string containing the outgoing message or the incoming message (up to 160 characters).
NumberCharacter string containing the recipient number or the sender number.
NumberTypeIndicates the type of number used:
  • smsInternationalNumber (default): these numbers can be reached from anywhere and are of the form 06.xx.xx.xx.xx
  • smsNuméroNational: short number, accessible only from France.
PièceJointeCharacter 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 document attachment must be located on the device's shared memory (e.g. on the SD card)..
Remark: This variable is only used when sending SMS with the SMSRunApp function.. It is ignored in all other cases.
ReceiveDateDate and time when the SMS was received.
RetryBoolean (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:
WM Managing Contacts 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
- ...
Minimum version required
  • Version 9
This page is also available for…
Comments
Awesome Post
Its very nice informative article. thanks for sharing such great article hope keep sharing such kind of article sms structure https://www.smsala.com
Sheikh IRFAN
22 Jan. 2019

Last update: 09/21/2024

Send a report | Local help