The context of the CDO form.
object.Context
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfileForm interface |
Display some information about the CDO form, including its case context.
Dim aForm
Dim aContext
Dim aCase, aCaseTitle
Dim aFormInfo
Set aForm = Profile.Form
set aContext = aForm.Context
set aCase = aContext.CaseObj
if not aCase is Nothing then
aCaseTitle = aCase.CaseTitle
else
aCaseTitle = " - "
end if
aFormInfo =_
"Short Name: " & aForm.ShortName & vbNewLine &_
"TypeName: " & aForm.TypeName & vbNewLine &_
"Context Case: " & aCaseTitle & vbNewLine
Profile.MsgBox(aFormInfo)