>DO WHILE TYPE('loObject.Parent.Name')='C' > loObject = loObject.PARENT >ENDDO >Checking the type of name is a good technique, generally (as is using ISNULL). The only problem with it is that while *most* objects have a name property, not _all_ objects do.