Expand Minimize

Project.GetDisplayNameFromObjectMatchingID Method (Project)

Returns the display name of an object.

expression .GetDisplayNameFromObjectMatchingID(ObjectType, MatchingID)

expression A variable that represents a Project object.

Parameters

Name

Required/Optional

Data Type

Description

ObjectType

Required

Long

The type of object. Can be one of the PjOrganizer constants.

MatchingID

Required

String

String specifying the matching name of the object.

Return Value

String

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.

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"))

Community Additions

ADD
Show:
© 2014 Microsoft