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

Overriding a script – PB Docs 2019 – PowerBuilder Library

Overriding a script – PB Docs 2019

Overriding a script

To override an ancestor script

  1. In the first drop-down list in the Script view, select the
    object or a control, and in the second drop-down list, select the
    event for which you want to override the script.

  2. Code a script for the event in the descendant.

    You can call the script for any event in any ancestor as
    well as call any user-defined functions that have been defined for
    the ancestor.

    For information about calling an ancestor script or
    function, see Calling an ancestor
    script
    and Calling an ancestor
    function
    .

    Override but not execute

    To override a script for the ancestor but not execute a
    script in the descendant, enter only a comment in the Script
    view.

  3. Select Extend Ancestor Script on the Edit menu or the pop-up
    menu to clear the check mark.

    Clearing the Extend Ancestor Script item means that you are
    overriding the script.

    At runtime, PowerBuilder executes the descendant script when
    the event is triggered. The ancestor script is not
    executed.

Example of overriding a
script

If the script for the Open event in the ancestor window displays
employee files and you want to display customer files in the
descendant window, select Override Ancestor Script and create a new
script for the Open event in the descendant to display customer
files.


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