I'm building a builder for a certain type of command button. I need to do is check some properties of the form that the button is on. Only problem is, the button may be on a pageframe or in a container several levels from the form, so using an aselobj() and then a .parent won't work. What I need is a "parentform" keyword. I thought that aselobj() with an optional parameter of 1 would do the trick, but that only returns the container that the selected control is in. Also thought about amouseobj() with a 1 parameter, but sometimes when you right-click on the button and go to builder, the mouse is now off of the form, so that won't work either. Any ideas other than writing a recursive tree walker that will keep going until the form is found?
Brian McCord
President
Sagacity Systems