PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Special cases
  • Required permissions
  • Required application feature
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Lists the device contacts corresponding to the specified criteria.
Versions 18 and later
Android Widget This function is now available in Android widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 18
Android Widget This function is now available in Android widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android Widget This function is now available in Android widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 22 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Rafraîchissement de la liste des contacts dans le champ Zone répétée
LooperDeleteAll(ZR_CONTACTS)
 
// Récupération de la liste des contacts
IF SAI_Recherche <> "" THEN
gtabContacts = ContactList(Null, contactLastName, SAI_Recherche)
ELSE
gtabContacts = ContactList(Null)
END
 
// Ajout dans le champ Zone répétée
FOR EACH tContact OF gtabContacts
IF tContact.NomAffiché <> "" THEN
LooperAddLine(ZR_CONTACTS, tContact.NomAffiché, tContact)
END
END
Syntax
<Result> = ContactList([<Source> [, <Filter> [, <Lower bound> [, <Upper bound>]]]])
<Result>: Array of Contact variables
Array of Contact variables initialized with the list of contacts corresponding to the specified criteria.
In case of error, the Variable ErrorOccurred is to True. To get the details of the error, use ErrorInfo.
<Source>: Optional ContactSource variable
Name of ContactSource variable describing the source or the account for which the contacts must be listed.
If this parameter is set to NULL, the contacts of all the device sources will be taken into account.
<Filter>: Optional Integer constant
Property on which the list of contacts must be filtered:
contactEmailFilter on the Email addresses.
contactLastNameFilter on the family names.
contactFirstNameFilter on the first names.
contactCompanyFilter on the companies.
contactPhone
(Default value)
Filter on the phone numbers.
<Lower bound>: Optional character string
Lower bound for the filter.
<Upper bound>: Optional character string
Upper bound for the filter.
If this parameter is not specified, the upper bound corresponds to the value of <Lower bound>.
Remarks

Special cases

To list the sources or the accounts with which the device contacts are synchronized, use ContactListSource.
AndroidAndroid Widget

Required permissions

The call to this function modifies the permissions required by the application.
Required permission: READ_CONTACTS
This permission allows the application to read the data of the user contacts.
Versions 22 and later
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
New in version 22
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
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
- ...
Business / UI classification: Business Logic
Component: wd270android.aar
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment