PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Special cases
  • 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
Opens the form of a contact in the native application for contact management of the device (Android, iPhone or iPad, Universal Windows).
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the 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 the iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the 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
// Syntax kept for backward compatibility
// Opens the form of the first contact found on the phone
IF ContactFirst(contactPhone) = True THEN
ContactDisplay()
END
// Procedure used to display the selected contact in a looper control
PROCEDURE DisplayContact(nContactNum is int)

tContact is Contact

IF nContactNum <= gtabContacts..Occurrence THEN
tContact = gtabContacts[nContactNum]

// Initializes the contact
VariableReset(gCurrentContact)
gCurrentContact = tContact
ContactDisplay(gCurrentContact)
END
Syntax
Versions 17 and later
Caution: Syntax available from version 170069

Displaying a contact from a Contact variable (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDisplay(<Contact>)
<Result>: Boolean
  • True if the form of the contact was opened,
  • False otherwise. To find out the error details, use ErrorInfo.
<Contact>: Contact variable
Name of Contact variable corresponding to the contact to display. This contact must exist in the database of contacts.
New in version 17
Caution: Syntax available from version 170069

Displaying a contact from a Contact variable (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDisplay(<Contact>)
<Result>: Boolean
  • True if the form of the contact was opened,
  • False otherwise. To find out the error details, use ErrorInfo.
<Contact>: Contact variable
Name of Contact variable corresponding to the contact to display. This contact must exist in the database of contacts.
Caution: Syntax available from version 170069

Displaying a contact from a Contact variable (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDisplay(<Contact>)
<Result>: Boolean
  • True if the form of the contact was opened,
  • False otherwise. To find out the error details, use ErrorInfo.
<Contact>: Contact variable
Name of Contact variable corresponding to the contact to display. This contact must exist in the database of contacts.
Warning
From version 17 (69), this syntax is kept for backward compatibility.

Displaying a contact from a Contact variable (before Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDisplay([<Contact Identifier>])
<Result>: Boolean
  • True if the form of the contact was opened,
  • False otherwise. To find out the error details, use ErrorInfo.
<Contact Identifier>: Optional character string
Identifier of contact to display. This identifier is found in the mContact.ID variable of the Contact structure.
If this parameter is not specified or if it corresponds to an empty string (""), the form of the current contact is displayed.
Reminder: To browse the contacts found on the device, use the following functions: ContactFirst, ContactNext, ContactPrevious and ContactLast.
Remarks

Special cases

  • ContactDisplay gives control back to the application as soon as the form of the contact is displayed.
  • ContactDisplay can be used in the emulator. It cannot be used in the simulator.
Versions 22 and later
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
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 an application feature in the wizard for generating the application.
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 an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
Components
Android wdandroid.jar
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment