Repository.Xfmea.GetXfmeaFailure Method

Returns an XfmeaFailure object, which represents an FMEA failure. 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)