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

 

Who is viewing this page
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 14 November 2024 20:19 PM UTC
  2. PowerBuilder
  3. # 1

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.