Hello PBCCers. You all have helped me so much, I thought I'd share a few useful little utilities that I wrote. These are to help me as I'm working on my large PBCC aircraft design program which is spread across dozens of source code #Includes and was coded over a period of 30+ years. They've been a big help as I've been trying to clean up and squeeze down my code to solve the Cannot Access Compiler Results error that has been plaguing me recently (I'm winning, but the battle continues).
There are five utilities, as follows:
-List the Subs and Functions in all .bas files
-List all #Includes
-List out long IO text strings which were originally hard-coded in quotes
-Remove non-standard characters and optionally replace long blank strings with CHR$(34)+SPACE$(#)+CHR$(34)
-Add up total lines of code
The first three write a text file with the results, making it easy to search for a particular item. The fourth one creates a fixed copy of your source code file but doesn't touch the original.
All are written in simple PBCC Basic, nothing tricky, no WinAPI calls, etc. I'm sure you all could quickly write similar codes and make them better, but these are already working.
These are in the attached file, or you can download them at www.aircraftdesign.com/RaymerCodes.txt.
There are five utilities, as follows:
-List the Subs and Functions in all .bas files
-List all #Includes
-List out long IO text strings which were originally hard-coded in quotes
-Remove non-standard characters and optionally replace long blank strings with CHR$(34)+SPACE$(#)+CHR$(34)
-Add up total lines of code
The first three write a text file with the results, making it easy to search for a particular item. The fourth one creates a fixed copy of your source code file but doesn't touch the original.
All are written in simple PBCC Basic, nothing tricky, no WinAPI calls, etc. I'm sure you all could quickly write similar codes and make them better, but these are already working.
These are in the attached file, or you can download them at www.aircraftdesign.com/RaymerCodes.txt.
Comment