Project.GetDisplayNameFromObjectMatchingID Method

Project Developer Reference

Returns the display name of an object.

Syntax

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 specified by pjOrganizer constants.
MatchingID Required String String specifying the Matching ID of the object.

Return Value
String

Remarks

You can use GetDisplayNameFromObjectMatchingID method to get the display name in a multiple-language environment supported by the new OMIDS feature in Microsoft Office Project 2007.

Example

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

Visual Basic for Applications
  MsgBox(ActiveProject.GetDisplayNameFromObjectMatchingID(pjView, "My Gantt Chart"))

See Also