Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Counting Lines Of Code.

417 views
Skip to first unread message

David Lowley

unread,
Nov 17, 1999, 3:00:00 AM11/17/99
to
Our project has been given a additional task in providing the maintenance
contractor the # of lines of code in our application.

Is there a tool or product that could accomplish this very task. Our current
project has 30.5 megs of data in our PBL's.

We are using PB6.5 and PFC

Thanks

Nigel Milham

unread,
Nov 17, 1999, 3:00:00 AM11/17/99
to
How is this information going to be of any use, the lines could be code,
commented out code, etc

The obvious way is to export all the objects, strip off the headers and
count the lines, still seems a pointless exercise though...

David Lowley wrote in message ...

Mary terHuurne

unread,
Nov 17, 1999, 3:00:00 AM11/17/99
to
Have a look at http://www.ascensionlabs.com/pbcodeanalyzer.htm for their
PowerBuilder Code Analyzer. Provides line counts by object/method/library,
etc (and totals) and many other useful statistics.
You can download an evaluation copy and purchase price is reasonable.
-Mary

David Lowley <David....@usarec.army.mil> wrote in article
<RuZPPWRM$GA....@forums.sybase.com>...

Terry Voth

unread,
Nov 17, 1999, 3:00:00 AM11/17/99
to
PBL Peeper is a freeware/charityware tool that can do that. The
Scripts List Page will count both the number of physical lines (a
physical line being defined by a carriage return / line feed
delimiter) in a scripts, but does not at this point differentiate
between code, comments, blank lines or SQL (that's coming, whenever I
get the time... <g>). Use the View / Show menu option to initiate the
counting. Once PBL Peeper has built your list for you, you can either
filter the list and see the sum for the visible rows, or export the
data and the datawindow source (PBL Peeper is built in PB), import
both into PB and build your own custom report (for example, you may
want a report based on the owner type, to find out how many lines of
text datawindows have versus static texts... yes, I have code in
static texts!!). If you absolutely *have* to have something that
counts the lines in an object instead of the lines of scripts (export
an object to see all the lines of "source" you're generating when you
paint a window... and all those lines to bloat your statistics <BG>),
contact me, as my next version in alpha stages has this added.

If you're using PB6.5.0, try PBL Peeper 6 with the /IgnoreVersion
command line parameter... It was built with PB6.5.1, but it may still
work. I can't say I've tried that combination. Just stay away from the
object changing functionality like the search and replace, unless you
like living dangerously. <g>

PBL Peeper can be found at http://www.ca.imrglobal.com/gallery/tvoth.

Good luck,

Terry [TeamSybase] and Sequel the techno-kitten

Ken Howe

unread,
Nov 18, 1999, 3:00:00 AM11/18/99
to
PBBrowse my shareware product does that and produces a nice graph. You can
get a free 30 day trial from www.pbdr.com which should cover you needs.

Ken


David Lowley <David....@usarec.army.mil> wrote in message
news:RuZPPWRM$GA....@forums.sybase.com...


> Our project has been given a additional task in providing the maintenance
> contractor the # of lines of code in our application.
>
> Is there a tool or product that could accomplish this very task. Our
current
> project has 30.5 megs of data in our PBL's.
>
> We are using PB6.5 and PFC
>

> Thanks

0 new messages