Hello me again.. I have a huge project and was wandering if it is possible to search inside those files (I mean particular fields, variables or calls) either from editor or some external program.
Thanks in advance.
What do you mean by search the files for fields internally. If you're just looking to see if a .p or .i calls a field could you not do a search on your directory for files containing the field you're looking for?
I mean I may be looking at this all wrong but can you use Windows Search or another desktop search and use the word or phrase in a file to search. It is probably too low level for what you want but not exactly sure how you intend to use this.
I tried that and then I tried google desktop as well... didn't work so I came here for help. textpad actually works very well.. It gives you all of the instances of the search query in a very organized structure.
Text search tools can help, but have an inherent difficulty because they are not knowledgeable about the syntax of ABL. So, searching for a given text string can easily give you false matches in comments, longer strings, keywords, etc. Plus, while ABL might allow you to abbreviate keywords and database names as long as they are ambiguous, the search tool knows knowing about this and won't find those instances.
Just wanted to share my experience. Windows search for a text string helps in Windows 2000 and 2003 but not in XP. But there are tools like ZTreeWin that does it for you. For example, if you want to know how many files in your source code uses "dbname.tablename.fieldname" string in a system with Windows XP, ZTreeWin can serve the purpose.
But, again, *all* string matching utilities, as useful as they are, are searching based only on patterns of characters without any intelligence about the ABL syntax. So a search for "for each X" will fail to find "for each X" simply because someone happened to put in an extra space. These tools will also find strings in comments and are unable to distinguish between variable names, field names, quoted strings, and keywords, all of which might contain the same variable string.