Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetParent – PB Docs 2019 – PowerBuilder Library

GetParent – PB Docs 2019

GetParent

PowerScript function

Description

Obtains the parent of the specified object.

Applies to

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 value

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

ParentWindow

Pronouns


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