ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Contact functions (Lotus Notes or Android/iPhone/iPad)
  • Properties specific to EmailAddress variables
  • Reinitialization
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The EmailAddress type is used to handle an email address as well as its type (home, office, etc.).
The characteristics of this email address can be defined and modified using various WLanguage properties.
This type of variable is used by the Contact variables.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
MonContact is Contact

// Récupère la première adresse email professionnelle d'un contact
sAdresse is string
FOR EACH Email OF MonContact.Email
	IF Email.Type = emailWork  THEN
		sAdresse = Email.Adresse
		RETURN
	END
END
// Affiche les contacts et leurs différents mails
gtabContacts is array of Contact
gContactEnCours is Contact

gtabContacts = ContactList(Null)
Info("Nombre de contacts : " + gtabContacts.Count)

FOR EACH gContactEnCours OF gtabContacts
	Info(gContactEnCours.DisplayedName)
	FOR EACH Email OF gContactEnCours.Email
		Info(Email.Adresse)
	END
END
Properties

Properties specific to EmailAddress variables

The following properties can be used to handle an Email address:
Property nameType usedEffect
AddressCharacter stringEmail address.
LabelCharacter stringLabel for the custom types of email addresses (optional).
If Type does not correspond to the emailCustom constant, the value of this property will be ignored.
TypeInteger constantType of email address:
  • emailOther other types.
  • emailOffice office email address.
  • emailDomicile Home email address.
  • emailMobile phone's email address.
  • emailCustom custom type corresponding to the value of the property Label.
iPhone/iPadIOS WidgetMac Catalyst This property is not available.
Remarks

Reinitialization

You can use VariableReset to reset the contents of a variable of type EmailAddress.
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help