Hi,
Is there any quick/easy way to count the lines of code in a stack. I have several stacks with lots of cards and just want a simple count of the lines.
Thanks
Greg
Counting Lines of Code
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Counting Lines of Code
Hi Greg,
Gather all infos in a repeat loop over the cards in your stack and that's it.
Best
Klaus
Code: Select all
...
put the num of lines of the script of stack "your stack here" into NumberOfStackScriptLines
...
Best
Klaus
Re: Counting Lines of Code
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
-
- VIP Livecode Opensource Backer
- Posts: 9580
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Counting Lines of Code
Hi,
I did this for a large project once. I counted the total number of lines and then deducted all lines that either were empty or began with "--".
You will need to examine each card and accumulate the scripts of all the controls on each. Then add the stack script. You can do all that without actually navigating to each card right?
Craig
I did this for a large project once. I counted the total number of lines and then deducted all lines that either were empty or began with "--".
You will need to examine each card and accumulate the scripts of all the controls on each. Then add the stack script. You can do all that without actually navigating to each card right?
Craig