MAPI OCX

Chris Kelleher

Administrator
Staff member
Ian,

The best place to look for this type of info is Microsoft's web site in the
platform SDK area. This is part of the page from cdo.chm. Hope it helps
...

----------------------------------------------------------------------------
----------------
The AddressBook method displays a modal dialog box that allows the user to
select entries from the address book. The selections are returned in a
Recipients <_olemsg_recipients_collection_object.htm> collection object.
Syntax
Set objRecipients = objSession.AddressBook( [recipients] [, title] [,
oneAddress] [, forceResolution] [, recipLists] [, toLabel] [, ccLabel] [,
bccLabel] [, parentWindow ] )
objRecipients
On successful return, the Recipients collection object. When the
user does not select any names from the dialog box, AddressBook returns
Nothing.
objSession
Required. The Session object.
recipients
Optional. Object. A Recipients
<_olemsg_recipients_collection_object.htm> collection object that provides
initial values for the recipient list boxes in the address book dialog box.
During the dialog, the user can select recipients from this collection and
add other recipients.
title
Optional. String. The title or caption of the address book dialog
box. The default value is an empty string.
oneAddress
Optional. Boolean. Allows the user to enter or select only one
address entry at a time. The default value is False.
forceResolution
Optional. Boolean. If True, attempts to resolve all names before
closing the address book. Prompts the user to resolve any ambiguous names.
The default value is True.
recipLists
Optional. Long. The number of recipient list boxes to display in the
address book dialog box:
recipLists
setting
Action
-1 Displays three list boxes with default captions and without
resolution, that is, acts as a shortcut for forceResolution=False,
recipLists=3 with no setting of toLabel, ccLabel, or bccLabel.
0 Displays no list boxes. The user can interact with the address book
dialog box but no recipients are returned by this method.
1 Displays one list box for CdoTo recipients (default).
2 Displays two list boxes for CdoTo and CdoCc recipients.
3 Displays three list boxes for CdoTo, CdoCc, and CdoBcc recipients.

toLabel
Optional. String. The caption for the button associated with the
first recipient list box. Ignored if recipLists is less than 1. If omitted,
the default value "To:" is displayed.
ccLabel
Optional. String. The caption for the button associated with the
second recipient list box. Ignored if recipLists is less than 2. If omitted,
the default value "Cc:" is displayed.
bccLabel
Optional. String. The caption for the button associated with the
third recipient list box. Ignored if recipLists is less than 3. If omitted,
the default value "Bcc:" is displayed.
parentWindow
Optional. Long. The parent window handle for the address book dialog
box. A value of zero (the default) specifies that the dialog box should be
application-modal.

----------------------------------------------------------------------------
--------------------------------------


Regards,

Rich


Richard Herring
Programming Services

Bac-Tech Systems, Inc.
http://www.bac-tech.com/ <http://www.bac-tech.com/>
 

Chris Kelleher

Administrator
Staff member
Ian,

Almost forgot, also try the COM object view in Protools. It allows you to
look into ".dll's" to see the structure of methods and attributes. It also
show the Progress syntax for accessing them.


Regards,

Rich


Richard Herring
Programming Services

Bac-Tech Systems, Inc.
http://www.bac-tech.com/ <http://www.bac-tech.com/>
 
Top