Pronouns
Contents
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, |
Object or control itself |
|
Parent |
Control in a window |
Window containing the control |
|
|
Control in a custom user object |
Custom user object containing the |
|
|
Menu |
Item in the menu on the level above the current |
|
Super |
descendant object or control |
Parent |
|
|
descendant window or user object |
Immediate ancestor of the window or user |
|
|
Control in a descendant window or user |
Immediate ancestor of the control’s parent window or |
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.