- Required application feature
ContactSearch (Function) In french: ContactCherche 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.
// 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:
| | mContactCompany | Search performed in the companies of contacts | mContactEmail | Search performed in the emails of contacts | mContactFirstName | Search performed in the first names of contacts | mContactLastName | Search 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:
| | mContactCompany | Search performed in the companies of contacts | mContactEmail | Search performed in the emails of contacts | mContactFirstName | Search performed in the first names of contacts | mContactLastName | Search 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>.
This page is also available for…
|
|
|
|