>>>Thought I would point out wparent().
>>>It seems to be just what I'm looking for.
>>
>>Won't that fail if a child launches another child from within the TL scope? I assume that's what you meant by "complexity"...
>
>I don't understand why it might fail.
>The fact that there are 2 child forms with the same wParent() should be no problem.
>But maybe I'm missing something.
I haven't tested WPARENT with this yet, so just a WAG here. But if your app is like mine, I launch sub-children from children within TLs, and they should give the *child* as WPARENT in theory, rather than the TL. But I'll have to test it later, see what I find.
This is just a cautionary note on my part, you may be okay, but it's worth testing to be sure.
The other reason neither Tracy nor I would likely give W***() windows functions as solutions, is that they're generally not good programming practice in OOP. WPARENT, WONTOP, etc, are throwbacks to before OOP, encapsulation, etc.
Doesn't mean you can't use one when it's the only easy solution, though.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.