PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Overview
  • The variables of the SMS structure
  • Operating mode in GO mode and at runtime
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
Remark: To reset all the variables of the SMS structure to zero, use SMSReset.
Versions 15 and later
Android This structure is now available for Android applications.
Android Only SMS messages found in the phone memory can be handled by the SMS functions.
New in version 15
Android This structure is now available for Android applications.
Android Only SMS messages found in the phone memory can be handled by the SMS functions.
Android This structure is now available for Android applications.
Android Only SMS messages found in the phone memory can be handled by the SMS functions.
Versions 19 and later
iPhone/iPad This structure is now available for iPhone/iPad applications.
New in version 19
iPhone/iPad This structure is now available for iPhone/iPad applications.
iPhone/iPad This structure is now available for iPhone/iPad applications.
The variables of the SMS structure
The structure contains the following members:
ReceiveDateDate and time when the SMS was received.
Remark: On Pocket PC 2002, this member contains the date and time when the SMS was read.
iPhone/iPad This variable is ignored.
RetryBoolean (True by default)
Indicates whether the message must be sent on a regular basis if no reception.
AndroidiPhone/iPad This variable is ignored.
SubscriptInteger corresponding to the subscript of the incoming SMS.
MessageCharacter string containing the outgoing message or the incoming message (up to 160 characters).
Versions 25 and later
Android The message is not limited to 160 characters.
New in version 25
Android The message is not limited to 160 characters.
Android The message is not limited to 160 characters.
NumberCharacter string containing the recipient number or the sender number.
Versions 25 and later
Attachment
New in version 25
Attachment
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.
iPhone/iPadWindows Mobile This variable is ignored.
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 by this prefix.
If the national prefix is not specified, use a number in international format. For example, 1612345678.
iPhone/iPad This variable is ignored.
NumberTypeIndicates 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.
iPhone/iPad This variable is ignored.
Operating mode in GO mode and at runtime
In GO mode (simulation on the development computer), a WLanguage error occurs when a variable of the SMS structure is used.
The differences between GO mode (simulator) and real use are presented in Differences between GO mode and real use.
Android The SMS functions can be used during a GO on the Android emulator. To simulate the sending of SMS messages to the emulator, see the documentation of the Android SDK : https://developer.android.com/studio/run/emulator#console
Related Examples:
Pocket Managing Contacts 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.
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