Larry,
>on a (mmBusinessForm) form I have a mmButton (not mmButtonSave) where I do
>
>mmSaveDataResult RulesResult;
>this.oList.Rules.ClearAll();
>RulesResult = this.oList.CheckRules();
>if (RulesResult == mmSaveDataResult.RulesPassed)
>{
> do save etc.
>}
>else
>{
> this.DisplayBrokenRules(this.oList.Rules);
>}
>
>I can get the error message and dialogs using form DisplayErrorDialog as documented, however I cannot seem to get the icons to appear next to the fields on the windows form. I've looked through the sample app and docs, no help. Any suggestions?
First of all, I recommend making sure that you have a user interface control that has its BindingSourceMember set to the same column/property you are checking in your business rule. After that, I recommend setting a breakpoint in mmBusinessForm.DisplayBrokenRules() to make sure that DisplayErrorProviderRules() is being executed.
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