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

Pronouns – PB Docs 2019 – PowerBuilder Library

Pronouns – PB Docs 2019

Pronouns

Description

PowerScript has pronouns that allow you to make a general reference
to an object or control. When you use a pronoun, the reference remains
correct even if the name of the object or control changes.

Usage

You can use pronouns in function and event scripts wherever you
would use an object’s name. For example, you can use a pronoun to:

  • Cause an event in an object or control

  • Manipulate or change an object or control

  • Obtain or change the setting of a property

The following table lists the PowerScript pronouns and summarizes
their use.

This pronoun

In a script for a

Refers to the

This

Window, custom user object, menu, application object,
or control

Object or control itself

Parent

Control in a window

Window containing the control

 

Control in a custom user object

Custom user object containing the
control

 

Menu

Item in the menu on the level above the current
menu

Super

descendant object or control

Parent

 

descendant window or user object

Immediate ancestor of the window or user
object

 

Control in a descendant window or user
object

Immediate ancestor of the control’s parent window or
user object

ParentWindow property

You can use the ParentWindow property of the Menu object like a
pronoun in Menu scripts. It identifies the window that the menu is
associated with when your program is running. For more information, see
the the section called “Referring to objects in your application” in Users Guide.

The rest of this section describes the individual pronouns in
detail.


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