ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Contact functions (Lotus Notes or Android/iPhone/iPad)
  • Current contact
  • Syntax that is using the Contact structure (before Android 2.0)
  • 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
Reads the last contact found in:
  • Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    Warning
    From version 17 (69), ContactLast is available for backward compatibility. This function is not recommended if you are using Contact variables.
When reading a contact, the data of this contact is updated in the Contact structure. To retrieve the data of the current contact, all you have to do is retrieve the values from the Contact structure.
Example
Syntax
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst
Warning
From version 17 (69), this syntax is kept for backward compatibility.

Reading the last contact from the contact list of the device (before Android 2.0, iPhone, iPad and Universal Windows) Hide the details

<Result> = ContactLast(<Type of contact> [, <Type of information>])
<Result>: Boolean
  • True if the last contact was read,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Type of contact>: Integer constant
Type of contact to use. By default, this parameter corresponds to the contactPhone constant.
<Type of information>: Integer constant (or combination of constants)
Specifies the information about the contact to fill in the Contact structure when reading the contact. For performance reasons, we recommend that you only ask for the information really required when browsing the contacts. The available constants are as follows:
contactInfoAddressStreet address of the contact (business and home)
contactInfoAll
(Default value)
All the available information about the contact.
contactInfoCompanyCompany and department of the contact
contactInfoEmailEmail addresses of the contact
contactInfoGeneralName of the contacts and notes
contactInfoPhonePhone number of the contact: desk, mobile, business and home fax

If this parameter is not specified, the Contact structure will be filled with the available information about the contact.
Universal Windows 10 App This parameter is not available.
Remarks

Current contact

The mContact.Out variable is used to find out whether a current contact exists.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst

Syntax that is using the Contact structure (before Android 2.0)

Only the following members of the Contact structure will be taken into account when reading a contact:
  • mContact.Out
  • mContact.Name
    Contains the display name of the contact (for example: Paul Smith).
  • mContact.Notes
  • mContact.HomeAddress
    Contains the full home address (Street, city, zip, etc.).
  • mContact.HomePhone
  • mContact.HomeFax
  • mContact.MobilePhone
  • mContact.Company
  • mContact.Department
  • mContact.OfficeAddress
    Contains the full business address (Street, city, zip, etc.).
  • mContact.OfficePhone
  • mContact.OfficeFax
  • mContact.OfficeMobilePhone
  • mContact.OfficePager
  • mContact.Email
  • mContact.NbEmail
  • mContact.ID
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.
Component: wd270com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/21/2022

Send a report | Local help