Robert,
>Hello. I have an mmButtonSave on my form. When I click on the Save button I get a message "Unable to save current data. See the error icons for details." I'm expecting this message since I have some non-null fields. What I'm not expecting is the code in the mmButtonSave.Click() to execute when the form has errors and save my other business objects that are children of the primary business object.
>
>I'm looking at the ErrorEntityLists.Count "If Me.ErrorEntityLists.Count = 0 Then" which I would expect to be greater than 0 since the form has an error, but the count remains at 0. Is there a different property I shoudl be checking?
Are you saying that you have your own code in the mmButtonSave.Click() handler that is getting executed? If so, you can check the broken rule collection on your primary business object's rule object to see if there are any broken rules, and if so, don't run your code.
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