Table of contents
TOC
Collapse the table of content
Expand the table of content

Project.GetDisplayNameFromObjectMatchingID Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns the display name of an object.

Syntax

expression. GetDisplayNameFromObjectMatchingID( ** ObjectType, ** MatchingID )

expression A variable that represents a Project object.

Parameters

NameRequired/OptionalData TypeDescription
ObjectTypeRequiredLongThe type of object. Can be one of the PjOrganizer constants.
MatchingIDRequiredStringString specifying the matching name of the object.

Return Value

String

Remarks

You can use the GetDisplayNameFromObjectMatchingID method to get the display name in a multilanguage environment that uses Object Matching Identifier (OMID) fields. For more information, see the UseOMIDs property.

Example

The following example gets the display name of View object that has the Matching ID "My Gantt Chart".

MsgBox(ActiveProject.GetDisplayNameFromObjectMatchingID(pjView, "My Gantt Chart"))
© 2018 Microsoft