>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?
>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)
>
>Thank you
Let me see if I understand-
You have an object reference to a control, and an object reference to a form, and you want to determine if the control is contained in the form?
You could write a recursive routine that checks the parent property of the control, and parent property of that control, etc, until you reach a form object, and then compare the form object with the reference you are checking.
On another note, what are you trying to accomplish? Maybe we can come up with an easier way to do it.
Erik Moore
Clientelligence