Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lines of Code in all project files
Message
 
À
13/07/2004 12:02:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00923721
Message ID:
00923843
Vues:
35
Hilmar

I added one line of code to remove continuation lines and make it a little more accurate.

lnLineCount = occurs(chr(13), lcFileContents)
lnLineCount = lnLineCount - occurs(chr(59), lcFileContents) && Subtract continuations (;)


>>Hilmar
>>
>>Thanks. At least it gives me a ball park fiqure.
>
>Which, IIRC, is ridiculously high for some file types (for instance, for menus), and perhaps somewhat low for others. I was considering using some adjustment factors, based on the file type - but I didn't pursue the idea further.
>
>Feel free to use the code in any way that suits you. If you come up with some improvements, perhaps you, or I, can publish it eventually as a FAQ or download.
Dennis Lindeman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform