DrillIt( thisform, " ) && call itAnd here's the function:
function DrillIt( roObject, lcName ) if ( pemstatus( roObject, "Caption", 5 ) ) if ( ! empty( roObject.Caption ) ) debugout lcName + iif( empty( lcName ), "", "." ) + roObject.Name + ".Caption = " + roObject.Caption endif endif if ( pemstatus( roObject, "Objects", 5 ) ) local loObject for each loObject in roObject.Objects DrillIt( loObject, lcName + iif( empty( lcName ), "", "." ) + roObject.Name ) endfor endif return>I'm trying to find all objects and all objects / controls within other objects (container type controls like Pages on pageframes and Headers in Grids) on a given form, provided they have a Caption property.