Function GetParentForm() Foundation

Get parent form of an Xbase Part.

Syntax
GetParentForm( <oChild> ) --> <oForm>
Parameters
<oChild>
An Xbase Part for which the parent form object is to be found.
Return

GetParentForm() returns the form that contains the Xbase Part passed in <oChild>.

Description

The function GetParentForm() can be used by an Xbase++ application to find the form that contains a certain Xbase Part. To do that, GetParentForm() walks up in object's parent-chain until an object of either the XbpDialog or the XbpCrt class is found. If the Xbase Part passed in <oChild> is not a child of an object of these classes, GetParentForm() returns NIL.

GetParentForm() can be used by an Xbase++ application to get quick and easy access to an Xbase Part's parent form, without having to worry about the object's position in a window hierarchy.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.