Repository.Xfmea.AddXfmeaEffect Method

Adds a new effect to a failure. Returns a Boolean value; when true, indicates a successful save.

Syntax
.Xfmea.AddXfmeaEffect(Effect, FailureID)

Parameters
Effect
 * Required. The XfmeaEffect object that represents the effect to be added.

FailureID
 * Required. Integer. The record ID of the parent FMEA failure.

Example
This example assumes that FMEAs exist in a repository. It creates a new effect, and then saves it to one of the failures in the repository. VBA MyRepository Repository MyRepository.ConnectToAccessRepository AEffect XfmeaEffect AEffect.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaEffect(AEffect,1)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository AEffect XfmeaEffect AEffect.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaEffect(AEffect,1)