|
|
|
|
|
- Special cases
- Required permissions
- Required application feature
ContactList (Function) In french: ContactListe Lists the device contacts corresponding to the specified criteria.
// Refresh the contact list in the Looper control LooperDeleteAll(LOOP_CONTACTS) // Retrieve the list of contacts IF EDT_Find <> "" THEN garrContacts = ContactList(Null, contactLastName, EDT_Find) ELSE garrContacts = ContactList(Null) END // Add to the Looper control FOR EACH tContact OF garrContacts IF tContact.DisplayedName <> "" THEN LooperAddLine(LOOP_CONTACTS, tContact.DisplayedName, 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. If an error occurs, the ErrorOccurred variable is set to True. To get more details on 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: | | contactCompany | Filter on the companies. | contactEmail | Filter on the Email addresses. | contactFirstName | Filter on the first names. | contactLastName | Filter on the family names. | 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.
Related Examples:
|
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: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|