PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Current contact
  • Contact structure
  • 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
Reads a contact found in:
  • WINDEVWEBDEV - Server codeReports and Queries the address book of a Lotus Notes or Outlook messaging.
    Caution: This function cannot be used to read a contact found in the address book of an Outlook Express messaging.
  • Versions 16 and later
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    Warning
    From version 17 (69), ContactRead is available for backward compatibility. This function is not recommended if you are using Contact variables.
    New in version 16
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    Warning
    From version 17 (69), ContactRead is available for backward compatibility. This function is not recommended if you are using Contact variables.
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    Warning
    From version 17 (69), ContactRead is available for backward compatibility. This function is not recommended if you are using Contact variables.
To be read, this contact must have been:
ContactRead does not position on the contact read.
When reading a contact, the data of this contact is updated in the Contact structure.
Versions 16 and later
Android This function is now available for the Android applications.
New in version 16
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
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
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser code (UMC)
// Start a Lotus Notes session
SessionID is int
SessionID = EmailStartNotesSession("Password", "MarsServer", "email/julia.nsf", ...
"C:\Lotus Notes\julia.id")
// Read the first contact
ContactFirst(SessionID)
...
// Read this same contact again
ContactRead(SessionID, mContact.ID)
Syntax
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser code (UMC)

Reading a contact in the Lotus Notes or Outlook messaging Hide the details

<Result> = ContactRead(<Session Identifier> , <Contact Identifier>)
<Result>: Boolean
  • True if the contact was read,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Session Identifier>: Integer
Identifier of session to use. This identifier is returned by one of the following functions: EmailStartNotesSession, EmailStartOutlookSession, NotesOpenDatabase or OutlookStartSession.
<Contact Identifier>: Character string
Identifier of the contact to read. This identifier is found in the mContact.ID variable.
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App
Versions 16 and later
Warning
From version 17 (69), this syntax is kept for backward compatibility.
New in version 16
Warning
From version 17 (69), this syntax is kept for backward compatibility.
Warning
From version 17 (69), this syntax is kept for backward compatibility.

Reading a contact found in the list of contacts on the device (Android, iPhone or iPad, Universal Windows) Hide the details

<Result> = ContactRead(<Type of Contact> , <Contact Identifier>)
<Result>: Boolean
  • True if the contact was read,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Type of Contact>: Integer constant
Type of contact to use. By default, this parameter corresponds to the contactPhone constant.
<Contact Identifier>: Character string
Identifier of the contact to read. This identifier is found in the mContact.ID variable.
Remarks

Current contact

The mContact.Out variable is used to find out whether a current contact exists.
Versions 16 and later
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App

Contact structure

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, ...).
  • mContact.HomePhone
  • mContact.HomeFax
  • mContact.MobilePhone
  • mContact.Company
  • mContact.Department
  • mContact.OfficeAddress
    Contains the full business address (Street, city, zip, ...).
  • mContact.OfficePhone
  • mContact.OfficeFax
  • mContact.OfficeMobilePhone
  • mContact.OfficePager
  • mContact.Email
  • mContact.NbEmail
  • mContact.ID
New in version 16
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App

Contact structure

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, ...).
  • mContact.HomePhone
  • mContact.HomeFax
  • mContact.MobilePhone
  • mContact.Company
  • mContact.Department
  • mContact.OfficeAddress
    Contains the full business address (Street, city, zip, ...).
  • mContact.OfficePhone
  • mContact.OfficeFax
  • mContact.OfficeMobilePhone
  • mContact.OfficePager
  • mContact.Email
  • mContact.NbEmail
  • mContact.ID
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App

Contact structure

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, ...).
  • mContact.HomePhone
  • mContact.HomeFax
  • mContact.MobilePhone
  • mContact.Company
  • mContact.Department
  • mContact.OfficeAddress
    Contains the full business address (Street, city, zip, ...).
  • mContact.OfficePhone
  • mContact.OfficeFax
  • mContact.OfficeMobilePhone
  • mContact.OfficePager
  • mContact.Email
  • mContact.NbEmail
  • mContact.ID
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
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Android wd230android.jar
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment