>I might have that class on _Screen or on a Form. I need a reference to
>the _Screen object or the Form object, depending on which on the
>class is on.
>
>I could to:
>
> IF TYPE("ThisForm") = "O"
> oParent = ThisForm
> ELSE
> oParent = _Screen
> ENDIF
>
>
>But I was wondering if there was a more elegant way.
>
Kevin,
not sure if this is any more elegant ....
lo = THIS
DO WHILE TYPE('lo.parent') = "O"
lo = lo.PARENT
ENDDO
WAIT WINDOW lo.NAME
Nigel