|
|
|
|
- Current contact
- Required application feature
ContactFirst (Function) In french: ContactPremier Reads the first contact in a Lotus Notes or Outlook address book. Caution: This function cannot be used to read the first contact found in the address book of an Outlook Express messaging. When reading a contact, the data of this contact is updated in the Contact structure. To retrieve the data of the current contact, all you have to do is retrieve the values from the Contact structure. // Start a Lotus Notes session SessionID is int SessionID = EmailStartSession("Password", "MarsServer", "email/julia.nsf", ... "C:\Lotus Notes\julia.id") // Read the first contact ContactFirst(SessionID) // Add the contacts found into a List Box control WHILE mContact.Out = False ListAdd(LIST_ContactList, mContact.Name + TAB + mContact.FirstName) ContactNext(SessionID) END
// Start an Outlook session SessionID is int SessionID = OutlookStartSession("Profile") // Read the first contact ContactFirst(SessionID) // Add the contacts found into a List Box control WHILE mContact.Out = False ListAdd(LIST_ContactList, mContact.Name + TAB + mContact.FirstName) ContactNext(SessionID) END
Syntax
<Result> = ContactFirst(<Session identifier>)
Remarks Current contact The mContact.Out variable is used to find out whether a current contact exists.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|