Repository.Xfmea.GetXfmeaFailure Method

Returns an XfmeaFailure object that represents a given FMEA failure in the current project. 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 MyRepository.ConnectToAccessRepository AFailure XfmeaFailure MyRepository.Project.SetCurrentProject(1) AFailure = MyRepository.Xfmea.GetXfmeaFailure(1) MsgBox (AFailure.Dsc)

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