Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of lines in a PRG
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00190129
Message ID:
00190134
Views:
15
>Hi all,
>
>Is there a way to determine the number of lines in a .PRG file programmatically?
>I have (511) .PRG files.
>
>I appreciate your inputs.
>
>Thanks,

Fastest way I know of:
Create a table with one wide field.
Using ADIR() to find all PRGs, use APPEND TYPE SDF to pull each one into the table.
Use RECCOUNT() to count the number of lines.
(ZAP the table after each PRG.)

HTH,
Rich.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform