1. Manikandan Sayenathan
  2. PowerBuilder
  3. Thursday, 14 November 2024 18:34 PM UTC

Hi All,

How to count Lines of Code in Powerbuilder (inclusive of dw, uo, menus, windows etc)? Is there any way in doing that in powerbuilder

Thanks & Rgds,

Mani.S

 

Christophe Dufourmantelle Accepted Answer Pending Moderation
  1. Friday, 15 November 2024 15:25 PM UTC
  2. PowerBuilder
  3. # 1

Hi Manikandan,

You can use Visual Expert to count lines of code in a selection of objects, libraries, or applications.

It will indicate separately the number of lines of comments and instructions.

 

Cheers,

Christophe

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 14 November 2024 20:19 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Manikanden -

What do you consider to be a "line of code" (LOC)? Is a comment a LOC? Is the entire syntax of an exported DataWindow data object to be included in the count of LOC's? Are object function and event prototypes LOC's? Are instance and global variable declarations LOC's? Also, how accurate does the count need to be?

I've recently developed a PB app that scans the exported object source for all or a selected subset of object types in all or a selected library (note: This app will not currently work in a PB 2025 app that uses the Solution format... it only works with Workspaces and PBL's). There are a couple of obscure edge cases where the scanning/parsing logic may not count LOC with 100% accuracy, but it should be very close.

I'm considering submitting the app to CodeXchange, but have not yet done so. Please elaborate on your needs/requirements so that I can evaluate if the utility app I've created will be suitable for your use.

Best regards, John

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.