Sometimes script is divided into multiple events because of script length exceeds the limit which is i guess 1500 or 1000 lines. Having proper indentation is big problem with even smaller than 500 lines. I have no idea if any PowerBuilder version have code formatting option.
Better option is to use online formatter for PowerScript which i think Appeon can do for good. Anyway idea is good. Please provide the url if its there on web already. Thanks
another post by Bruce Armstrong : https://community.appeon.com/index.php/qna/q-a/pbl-peeper
Thanks a lot.
Andreas.
Code I am dealing with used very little hand written Sql and used datastores and hidden datawindows instead. Yes, very complex sql statements are very difficult to handle. I once used to deal with those when i was trying to create crosstab at runtime. I remember once a complex sql statement was good but not accepted by grid datawindow. I had to make a view of the sql and used the view instead. I strictly instructed other developers to avoid using sql directly in scripts.