Skip to Content
avatar image
Former Member

How to automatically write a piece of code in every PB object?

Hi All,

I have one piece of code which i need to write on every window open event and i do not want to go on every window and write a code manually so i need a script or any Powerbuilder Function which can do automatically code. please suggest me how can i do this?

Regards,

Sudeep

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    Thanks for reply

    but I want to write this code in exiting project and inheritance feature does not use in this project. Is there any other way to achieve this.

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 23, 2017 at 01:18 PM

    Hi Sudeep;

    Suggestion: Use PB's Window inheritance feature to accomplish this.

    Regards ... Chris

    Add comment
    10|10000 characters needed characters exceeded

  • May 23, 2017 at 09:22 AM

    I don't know a method for coding automatically.

    You should create a window ancestor object where you can code the open event. Inherit all your window objects from that ancestor.

    Add comment
    10|10000 characters needed characters exceeded