loParent = THIS
llGotParent = .F.
DOWHILE .T.
IFTYPE("loParent.PARENT") = "O"
loParent = loParent.PARENT
llGotParent = .T.
ELSE *-- Top most parentEXITENDIFENDDOIF llGotParent
?loParent.NAMEENDIF
HTH
I am not the most powerful man in this world. I am not the worst man in this world either. I just as same as all of you. I still need to learn from my mistakes...