ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Contact functions (Lotus Notes or Android/iPhone/iPad)
  • Principle of the modification by using the Contact structure
  • Remarks
  • 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
Modifies the current contact in:
  • Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
Example
Syntax
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst

Modifying the current contact in the list of contacts on the device (Android 2.0 and later, iPhone ou iPad, Universal Windows) Hide the details

<Result> = ContactModify(<Contact>)
<Result>: Boolean
  • True if the modification was performed,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Contact>: Contact variable
Name of the Contact variable corresponding to the contact for which the modified information must be updated.
Remarks

Principle of the modification by using the Contact structure

When reading a contact (with ContactRead, ContactFirst, ContactLast, ...), the data of this contact is updated in the Contact structure.
To modify the current contact, you must:
  1. Modify the values of the Contact structure.
  2. Confirm changes with ContactModify.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst

Remarks

  • To display the New Contact window in the device's native Contacts application, use ContactCreate.
  • 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 modifying the contact:
    • mContact.Name
      The name of the contact on the device will be built from the mContact.Name and mContact.FirstName members.
    • mContact.FirstName
      The name of the contact on the device will be built from the mContact.Name and mContact.FirstName members.
    • mContact.Notes
    • mContact.HomeAddress
      The home address of the contact on the device will be built from the mContact.HomeAddress, mContact.HomeCity, mContact.HomeZip, mContact.HomeState and mContact.HomeCountry members.
    • mContact.HomeCity
    • mContact.HomeZipCode
    • mContact.HomeState
    • mContact.HomeCountry
    • mContact.HomePhone
    • mContact.HomeFax
    • mContact.MobilePhone
    • mContact.Company
    • mContact.Department
    • mContact.OfficeAddress
      The business address of the contact on the device will be built from the mContact.OfficeAddress, mContact.OfficeCity, mContact.OfficeZip, mContact.OfficeState and mContact.OfficeCountry members.
    • mContact.OfficeCity
    • mContact.OfficeZipCode
    • mContact.OfficeState
    • mContact.OfficeCountry
    • mContact.OfficePhone
    • mContact.OfficeFax
    • mContact.OfficeMobilePhone
    • mContact.OfficePager
    • mContact.Email
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