PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of EmailAddress variables
  • Reinitialization
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
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 by several WLanguage properties.
This type of variable is used by the Contact variables.
Note: See Declaring a variable for more details.
Versions 18 and later
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
Versions 22 and later
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
New in version 22
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
Example
// Retrieves the first professional email address of a contact
sAddress is string
FOR EACH Email OF MyContact..Email
SI Email..Type = emailWork THEN
sAddress = Email..Address
RETURN
END
END
// Displays the contacts and their different emails
garrContacts is array of Contact
gCurrentContact is Contact

garrContacts = ContactList(Null)
Info("Number of contacts: " + garrContacts..Occurrence)

FOR EACH gCurrentContact OF garrContacts
Info(gCurrentContact..DisplayedName)
FOR EACH Email OF gCurrentContact..Email
Info(Email..Address)
END
END
Remarks

Properties specific to the description of 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.
  • emailWork: professional email address.
  • emailHome: personal email address.
  • emailCell: email address of phone.
  • emailCustom: custom type corresponding to the value of ..Label.
iPhone/iPad This property is not available.

Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Reinitialization

To reinitialize the content of an EmailAddress variable, you have the ability to use VariableReset.
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment