Repository.URD.GetURD

Gets the URD with the designated ID number and returns it as a cURD object. Returns nothing if the URD does not exist or is not in the current project.

Syntax
object.URD.GetURD(ID)

where object is a variable that represents a Repository object.

Example
This example assumes that a URD with ID#1 exists in a repository. VBA MyRepository Repository MyURD cURD MyRepository.Project.SetCurrentProject(1) MyURD = MyRepository.URD.GetURD(1) URDName String URDID Integer URDName = MyURD.Name URDID = MyURD.ID MsgBox ( & URDName &  & URDID)

VB.NET MyRepository Repository MyURD cURD MyRepository.Project.SetCurrentProject(1) MyURD = MyRepository.URD.GetURD(1) URDName String URDID Integer URDName = MyURD.Name URDID = MyURD.ID MsgBox ( & URDName &  & URDID)