You can use a code search tool that indexes langauge elements for quick searching and searching. This will simplify the search for the code of interest and will not even print all this paper, because instead, you just look at the code.
Our source code search system knows the lexical elements of many languages, in particular, VB6. It reads the source code base (thousands of files) and builds an index that helps you quickly find code elements. Using your graphical interface, you can write queries in terms of language elements to search for code fragments, such as:
S=*Login*
find strings (only) containing the text "Input" (using simple WildCards) or
'SUB' I=/[Aa]ccount.*/
which will find all routines whose name begins with "account", regardless of the first letter (full regular expression) or
'IF' ... N>17<35
Find IF expressions that use any value from 17 to 35 (".." means "next to"). The query element N allows you to quickly and easily find a constant.
A really powerful feature of the query language is "not". This allows you to build a sloppy query that finds "too much" and then eliminates "too much":
I '+' I - I=xyz
finds two added variables that do not include the xyz variable.
You can click any of the hit lists, and the code text will appear in the GUI window. No need for paper.
Since he knows the lexical structure of each langauge, he is not confused by spaces, lines, comments, or even lines containing code that looks like text.
Ira Baxter
source share