Repository.Xfmea.GetXfmeaFailure Method

Gets the failure with the designated ID number and returns it as an XfmeaFailure object. Returns nothing if the failure does not exist or is not in the current project.

Syntax
.Xfmea.GetXfmeaFailure(ID)

Parameters
ID
 * Required. Integer. The ID number of the failure to retrieve.

Example
This example assumes that a failure with ID#1 exists in a repository. VBA MyRepository Repository AFailure XfmeaFailure MyRepository.Project.SetCurrentProject(1) AFailure = MyRepository.Xfmea.GetXfmeaFailure(1) MsgBox (AFailure.Dsc)

VB.NET MyRepository Repository AFailure XfmeaFailure MyRepository.Project.SetCurrentProject(1) AFailure = MyRepository.Xfmea.GetXfmeaFailure(1) MsgBox (AFailure.Dsc)