ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Contact functions (Lotus Notes or Android/iPhone/iPad)
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
Searches for a contact in a Lotus Notes or Outlook address book.
Caution: This function cannot be used to search for a contact in an Outlook Express address book.
ContactSearch does not set the position on the desired contact.
Example
// Start a Lotus Notes session
SessionID is int
SessionID = EmailStartNotesSession("Password", "MarsServer", ....
"email/julia.nsf", "C:\Lotus Notes\julia.id")
...
// Find the contacts for the company named "Tames"
IF ContactSearch(SessionID, "Tames", mContactCompany) = True THEN
// Add the contacts found into a List Box control
WHILE mContact.Out = False
ListAdd(LIST_ContactList, mContact.Name + TAB + mContact.FirstName)
ContactNext(SessionID)
END
ELSE
Info("No contact was found")
END
Syntax

Finding a contact in the Lotus Notes or Outlook address book Hide the details

<Result> = ContactSearch(<Session identifier> , <Sought value 1> , <Type of value 1> [, <Sought value 2> [, <Type of value 2>]])
<Result>: Boolean
  • True if one or more contacts correspond to the search,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Session identifier>: Integer
Session ID to be used. This identifier is returned by EmailStartNotesSession, EmailStartOutlookSession, NotesOpenDatabase or OutlookStartSession.
<Sought value 1>: Type of sought value
First value to find.
<Type of value 1>: Integer constant
Type of first value to find:
mContactCompanySearch performed in the companies of contacts
mContactEmailSearch performed in the emails of contacts
mContactFirstNameSearch performed in the first names of contacts
mContactLastNameSearch performed in the last names of contacts
<Sought value 2>: Type of sought value, optional
Second value to find. If this parameter and <Type of value 2> are not specified, the contact is sought according to <Sought value 1>.
<Type of value 2>: Optional Integer constant
Type of the second value to find:
mContactCompanySearch performed in the companies of contacts
mContactEmailSearch performed in the emails of contacts
mContactFirstNameSearch performed in the first names of contacts
mContactLastNameSearch performed in the last names of contacts
If this parameter and <Sought value 2> are not specified, the contact is sought according to <Sought value 1>.
Remarks
Component: wd290com.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