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.
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.
Business / UI classification: Business Logic
Component: wd280android.aar