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
  • Application in the background: Specific case from Android 10
  • Required application feature
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
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
// Sélectionne un contact et déclenche l'appel de ce contact
// (utilisation de la structure contact)
IF ContactSelect() = True THEN
tapiDialerCall(mContact.MobilePhone)
END
gContactEnCours is Contact
// Sélectionne un contact et compose les numéros de téléphone de ce contact
// (utilisation de la variable contact)
IF ContactSelect(gContactEnCours) = True THEN
tel is Phone
FOR EACH tel OF gContactEnCours..PhoneNumber
IF tel..Type = phoneCellWork  OR tel..Type = phoneWork  THEN
tapiDialerCall(tel..Number)
RETURN
END
END
END
Syntax
Versions 17 and later

Selecting a contact and filling the Contact variable (from Android 2.0, iPhone or iPad, Universal Windows) Hide the details

<Result> = ContactSelect(<Contact>)
<Result>: Boolean
  • True if a contact was selected,
  • False otherwise. To get the details of the error, use ErrorInfo.
<Contact>: Contact variable
Name of the Variable of type Contact to be filled with the characteristics of the selected Contact.
New in version 17

Selecting a contact and filling the Contact variable (from Android 2.0, iPhone or iPad, Universal Windows) Hide the details

<Result> = ContactSelect(<Contact>)
<Result>: Boolean
  • True if a contact was selected,
  • False otherwise. To get the details of the error, use ErrorInfo.
<Contact>: Contact variable
Name of the Variable of type Contact to be filled with the characteristics of the selected Contact.

Selecting a contact and filling the Contact variable (from Android 2.0, iPhone or iPad, Universal Windows) Hide the details

<Result> = ContactSelect(<Contact>)
<Result>: Boolean
  • True if a contact was selected,
  • False otherwise. To get the details of the error, use ErrorInfo.
<Contact>: Contact variable
Name of the Variable of type Contact to be filled with the characteristics of the selected Contact.
Warning
From version 17 (69), this syntax is kept for backward compatibility.

Selecting a contact and filling the Contact variable (before Android 2.0, iPhone or iPad, Universal Windows) Hide the details

<Result> = ContactSelect()
<Result>: Boolean
  • True if a contact was selected,
  • False otherwise. To get the details of the error, use ErrorInfo.
Remarks

Special cases

  • If the user selects a contact, the Contact structure or the Contact variable is automatically filled with the information relative to the selected contact.
  • ContactSelect is a locking function until the user selects a contacts or cancels the selection window.
  • ContactSelect can be used in the emulator. It cannot be used in the simulator.
Versions 25 and later
AndroidAndroid Widget

Application in the background: Specific case from Android 10

From Android 10, it is no longer possible to open a window when the application is in the background.
ContactSelect can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
New in version 25
AndroidAndroid Widget

Application in the background: Specific case from Android 10

From Android 10, it is no longer possible to open a window when the application is in the background.
ContactSelect can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
AndroidAndroid Widget

Application in the background: Specific case from Android 10

From Android 10, it is no longer possible to open a window when the application is in the background.
ContactSelect can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
Versions 22 and later
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of one application feature 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

The use of this function triggers the declaration of one application feature in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of one application feature in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
Business / UI classification: Business Logic
Component: wd260android.jar
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