ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Contact functions (Lotus Notes or Android/iPhone/iPad)
  • Special cases
  • 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
Displays the list of contacts found on the device (Android, iPhone or iPad, Universal Windows). The user has the ability to select one of the contacts.
Example
gCurrentContact is Contact
// Selects a contact and dials the phone numbers of this contact
// (using the contact variable)
IF ContactSelect(gCurrentContact) = True THEN
tel is Phone
FOR EACH tel OF gCurrentContact.PhoneNumber
IF tel.Type = phoneCellWork OR tel.Type = phoneWork THEN
tapiDialerCall(tel.Number)
RETURN
END
END
END
Syntax
<Result> = ContactSelect(<Contact>)
<Result>: Boolean
  • True if a contact was selected,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Contact>: Contact variable
Name of the Contact variable to be specified with the characteristics of the selected contact.
Remarks

Special cases

  • If the user selects a contact, the Contact variable is automatically populated with the details of the selected contact.
  • ContactSelect blocks execution until the user selects a contact or leaves the selection window.
  • ContactSelect can be used in the emulator. It cannot be used in the simulator.
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.
Business / UI classification: Business Logic
Component: wd290android.aar
Minimum version required
  • Version 16
This page is also available for…
Comments
Not working to select in Apple IOS 8.4 - 10.3.1?
This function is not working to select in IOS. The contact list comes up but you cannot select a contact.
riaanjvr
23 Jun. 2017

Last update: 07/21/2022

Send a report | Local help