Forum Discussion

kimmatsumoto's avatar
kimmatsumoto
Contributor
7 years ago

How to get the number of scripts in a project (.sd unit)?

Hello,

 

I need to determine how many scripts are in a .sd unit (other than manually counting them).  The code metrics does not provide this information.

Any ideas?

 

Thanks in advance,

Kim

4 Replies

    • kimmatsumoto's avatar
      kimmatsumoto
      Contributor

      Hi Robert,

       

      Yes, I see that but unfortunately it's not the number I need.

      I need the number of procedures in the .sd unit.

      Example: I have a unit with only 4 procedures.  When I look at the metric for Number of Routines is get 778.

       

      Kim

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        I'm assuming, since it's SD, you're using DelphiScript... so, Routines equals procedures and functions.  Unfortunately, the code metrics doesn't parse it down to the two different types as you've noted.  I'm not sure there is an easy way to do this.

         

        Is there a reason why you need this information?  Perhaps there's another way of achieving your task.