Brian,
>I have a child BO that has a business rule thats failing but it isnt showing it as having failed in mmBusinessObject.CheckRules.
>I've traced it to this line of code in mmBusinessObject.CheckRules(mmBusinessObject businessObject, DataSet ds, string tableName)
>
> Result = businessObject.BusinessRuleObj.CheckRules(ds, tableName,
> businessObject.UseErrorProvider);
>
>
>Result is a mmSaveDataResult.
>The rules return boolean (Generated code )
>
>
>Return Me.ErrorProviderBrokenRuleCount = 0
>
When a business rule fails, it calls AddErrorProviderBrokenRule() which adds the broken rule to the ErrorProviderBrokenRules collection. The Me.ErrorProviderBrokenRuleCount simply returns the count from this collection. Can you post the code for the method that checks the rule? I'd like to see how it's calling AddErrorProviderBrokenRule().
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com