Description
Displays a standard dialog box containing the details of a given address list entry which may or may not be modified. Below is sample output for the contact detail window produced by the example for this function:
Syntax
status = MAPIDetails([session] [, parent] [, flags], name)
Parameters
The MAPIDetails function has the following parameters.
Parameter | Description |
---|---|
session | Contains a MAPI session handle returned by MAPILogon. If not specified a system default session will be initiated, if possible, or a sign-in dialog box will be displayed. In any case, MAPI will return to its previous state upon completion of the function. |
parent | Contains the name of an OpenInsight parent window. If not specified the dialog box will be application modal. |
flags | Contains information about session initiation and detail modification. It could be MAPI_LOGON_UI$, MAPI_NEW_SESSION$, MAPI_DIALOG$, MAPI_AB_NOMODIFY$, or a combination of these flags.
The insert record MAPI_EQUATES contains these flags. You may combine flags by adding them together with an addition sign (+). |
name | Contains the name of the address book entry whose details are to be displayed. |
After the details dialog completes successfully the entry in the address book may have been updated if the MAPI_AB_NOMODIFY$ flag has not been specified.
Returns
1 for successful execution or 0 for failure.
If function execution fails, you can retrieve a text error message by calling the Get_Status function. For example, to display an error message on the screen, include the following error handling routine in your code:
Get_Status(ErrMsg) Msg(@window, ErrMsg)
See also
Remarks
Subroutine DemoMAPIDetails(var) * Display address book details dialog box for Trudy $INSERT MAPI_EQUATES Declare Function MAPIDetails Declare Subroutine Msg, Get_Status flags = MAPI_LOGON_UI$ name = "Trudy Jones" if MAPIDetails(0, 0, flags, name) else Get_Status(display) Msg(@window, display) end return