>Hi,
> I have a control (mycontrol) that allocated in myform.pageframe.page1.container
>How could I determine that mycontrol is a "child" in my form?
Short of digging down into the form to check the class that each control was derived from, there are a couple of ways to check. If you have an object and want to know what form it's a part of, as long as the form was an SCX launched by DO FORM, SYS(1271) returns the name and path of the SCX containing the object at runtime.
If you have an object reference, SYS(1272) will give you the containership hierarchy of the object. It won't dig back past the form/formset level.
>I tried to use sys(1272) and PEMSTATUS(), but I don't get what I I need.
>Sys(1272) return the same thing I passed to it and PEMSTATUS only check for the top 1st level of child and not go deep. How could I implement this without having to go through each of the controls?
>
>?SYS(1272,myform.pageframe.page1.container.mycontrol)
>
If you know that, you're set - you know the containership. If you want to start from the top and check to see if the control is present, look at\ using AMEMBERS() and dig down to find it.
>Thank you