PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Finds a contact:
  • WEBDEV - Server code in the address book of a Lotus Notes or Outlook messaging.
    Caution: This function cannot be used to find a contact in the address book of an Outlook Express messaging.
ContactSearch does not position on the sought contact.
Example
WEBDEV - Server codeAjax
// 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
WEBDEV - Server codeAjax

Finding a contact in the Lotus Notes or Outlook messaging 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 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 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:
mContactEmailSearch performed in the emails of contacts
mContactLastNameSearch performed in the last names of contacts
mContactFirstNameSearch performed in the first names of contacts
mContactCompanySearch performed in the companies 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:
mContactEmailSearch performed in the emails of contacts
mContactLastNameSearch performed in the last names of contacts
mContactFirstNameSearch performed in the first names of contacts
mContactCompanySearch performed in the companies of contacts
If this parameter and <Sought value 2> are not specified, the contact is sought according to <Sought value 1>.
Remarks
Component : wd240com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment