GetParent – PB Docs 150

GetParent PowerScript function

Description

Obtains the parent of the specified object.

Controls

Any object

Syntax

Argument

Description

objectname

A control in a window or user object
or an item on a menu for which you want the parent object

Return Values

PowerObject. Returns a reference to the parent of objectname.

Examples

In event scripts for a user object that will be used
as a tab page, you can use code like the following to make references
to the parent Tab control generic:

You cannot refer to controls on the user object because a_tab_page does
not know about them. You cannot refer to specific pages in the Tab
control because a_tab does not know
about them either.

In event scripts for controls on the tab page user
object, you can use two levels of GetParent to refer to the user
object and the Tab control containing the user object as a tab page:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x