Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine the object existed
Message
From
01/09/1999 13:15:29
 
 
To
31/08/1999 23:45:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00260014
Message ID:
00260273
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform