Parent
This keyword has nothing to do with family trees, either yours or an object's. Parent points to the container object containing the specified object. It traces through the containership hierarchy, telling you which object contains the current object. Don't confuse it with ParentClass, which tells about the class hierarchy.
Usage |
oParentObject = oObject.Parent uValue = oObject.Parent.pProperty oObject.Parent.pProperty = uValue oObject.Parent.mMethod [ ( uParams ) ] |
Example |
* Use the SetAll method of a commandgroup to * disable every button in the * group when a particular button is pressed * This line would appear in the Click event for * the button that triggers the change. This.Parent.SetAll("Enabled",.F.) |
See Also |
AMembers(), ParentClass, Scatter, This, ThisForm, ThisFormSet |