Skip to Content
0

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

May 23, 2017 at 06:13 AM

117

avatar image
Former Member

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

10 |10000 characters needed characters left 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.

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

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

Hi Sudeep;

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

Regards ... Chris

Share
10 |10000 characters needed characters left characters exceeded
René Ullrich May 23, 2017 at 09:22 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded