Expand my Community achievements bar.

Navigating the hierarchy

Avatar

Former Community Member

Does anybody know of a reliable way to start at the top of a form's hierarchy and navigate through the entire hierarchy, firing off the validation events of each object for which a validation event is appropriate?   The hierarchy includes several layers of subforms and several dynamic subforms.

4 Replies

Avatar

Former Community Member

The execValidate() function will fire the Validate event of an object and all of its children .....so if your root node is form1 you woudl use form1.execValidate()

Paul

Avatar

Former Community Member

That's interesting. Now I'm wondering why the people who developed the code I'm looking at just didn't do it with one line instead of walking through the hierarchy field-by-field.

Avatar

Former Community Member

The sad thing is, they still know more than I do.