Help / WLanguage / WLanguage functions / Communication / Contact functions (Lotus Notes or Android/iPhone/iPad)
  • Properties specific to Contact variables
  • Reinitialization
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
The Contact type is used to define the advanced characteristics of a contact found in the phone book.
The characteristics of this contact can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
// Adds a phone number to the contact named "John Doe"
arrContact is array of Contact = ContactList()
IF NOT ErrorOccurred THEN
c is Contact
FOR EACH c OF arrContact
IF c.LastName ~= " Doe " _AND_ c.FirstName ~= " John "
tel is Phone
tel.Number = " 0467010203 "
tel.Type = phoneHome
Add(c.Phone, tel)

Properties specific to Contact variables

The following properties can be used to handle a phone contact:
Property nameType usedEffect
AddressArray of AddressList of postal addresses of contact.
DisplayedNameCharacter stringName of contact as it must be displayed on the phone (in the list of contacts or when receiving a call for example).
This name is automatically build from the information given for the contact, it cannot be modified. Typically, the displayed name corresponds to the concatenation of the first name and family name. If this information was not specified for the contact, the displayed name can correspond to the email address or to the phone number of the contact.
This property is read-only.
EmailArray of EmailAddressList of email addresses of contact.
EventArray of EventList of events associated with the contact.
  • True if the contact is found in the list of favorites,
  • False otherwise.
FirstNameCharacter stringFirst name of the contact.
IDIntegerContact identifier.
Caution: This property is read-only..
InstantMessagingArray of InstantMessagingList of addresses of instant messaging of the contact.
Universal Windows 10 App This property is not available.
LastNameCharacter stringFamily name of the contact.
NoteArray of character stringsList of notes associated with the contact.
iPhone/iPadIOS WidgetMac Catalyst Only one note can be associated with the contact.
PhoneArray of PhoneList of phone numbers of the contact.
SIPArray of SIPAddressList of SIP addresses of the contact.
iPhone/iPadIOS WidgetMac Catalyst This property is not available.
SourceArray of ContactSourceList of contact sources (Google, Exchange, Facebook accounts) to which the contact belongs.
iPhone/iPadIOS WidgetMac Catalyst The source cannot be modified. The contact can only belong to one source.
WebSiteArray of WebAddressList of Web addresses of contact.


You can use VariableReset or ContactReset to reset the content of a Contact variable.
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 17
This page is also available for…
Click [Add] to post a comment

Last update: 05/16/2024

Send a report | Local help