PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • The variables of the SMS structure
  • Operating mode in GO mode and at run time
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.
Note: To reset all the variables of the SMS structure to zero, use SMSReset.
Versions 15 and later
Android This structure is now available for the Android applications.
Android Only the SMSs found in the phone memory can be handled by the SMS functions.
New in version 15
Android This structure is now available for the Android applications.
Android Only the SMSs found in the phone memory can be handled by the SMS functions.
Android This structure is now available for the Android applications.
Android Only the SMSs found in the phone memory can be handled by the SMS functions.
Versions 16 and later
WINDEV This structure is now available for the WINDEV applications.
WEBDEV - Server code This structure is now available for the WEBDEV sites.
WINDEVWEBDEV - Server codeLinux The SMS structure is used to generate QR Codes (when printing a bar code for example).
New in version 16
WINDEV This structure is now available for the WINDEV applications.
WEBDEV - Server code This structure is now available for the WEBDEV sites.
WINDEVWEBDEV - Server codeLinux The SMS structure is used to generate QR Codes (when printing a bar code for example).
WINDEV This structure is now available for the WINDEV applications.
WEBDEV - Server code This structure is now available for the WEBDEV sites.
WINDEVWEBDEV - Server codeLinux The SMS structure is used to generate QR Codes (when printing a bar code for example).
Versions 18 and later
Linux This structure is now available for the WINDEV applications in Linux and for the WEBDEV sites in Linux.
New in version 18
Linux This structure is now available for the WINDEV applications in Linux and for the WEBDEV sites in Linux.
Linux This structure is now available for the WINDEV applications in Linux and for the WEBDEV sites in Linux.
Versions 19 and later
iPhone/iPad This structure is now available for the iPhone/iPad applications.
New in version 19
iPhone/iPad This structure is now available for the iPhone/iPad applications.
iPhone/iPad This structure is now available for the iPhone/iPad applications.
The variables of the SMS structure
The structure contains the following members:
ReceiveDateDate and time when the SMS was received.
Note: 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).
NumberCharacter string containing the recipient number or the sender number.
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 run time
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 SMSs to the emulator, see the documentation of the Android SDK : https://developer.android.com/studio/run/emulator#console
Related Examples:
PC Sending SMS 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.
Pocket Sending SMS 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()
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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment