Dan,
Look at the OBJTOCLIENT() function.
You can also test the BaseClass of the current container you are recursing/iterating through and do some appropriate conditional code in a DO CASE. You can also use PEMSTATUS() to see if the Top property exists.
>To do this I am looking at the top property of the current control and adding the top property of it's parent...and it's parent...and it's parent...etc. However there are some parents (ie containers) that don't have a TOP property.
>
>This method works ok as long as the original control is NOT on a pageframe within a pageframe within a container...etc.
>
>Is there a better way to calculate where the top of this modal form should be to appear just below the current control?