Advanced PowerBuilder

HomePrevious Lesson: Extending Ancestor Script
Next Lesson: Calling Ancestor Scripts

Overriding Ancestor Script

If you don't want to execute the ancestor script, you can display popup menu and turn off 'Extending Ancestor Event' menu option. When this option is turned off, the ancestor level script isn't executed - results you get from this object when this event occurs are related to the descendant level script. In cases where you don't want to execute an ancestor level script and where there is no script in the descendant window, simply add a comment in the descendant script, after selecting the above option. If you don't do this, PowerBuilder assumes that you still want the ancestor script to be executed and will ignore the menu selection.
HomePrevious Lesson: Extending Ancestor Script
Next Lesson: Calling Ancestor Scripts