Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching for string in .pas / .dfm files 1

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I've tried to write a tool for myself to allow me to run a search on '.pas' and '.dfm' files to find instances of a given string. Sometimes this has worked OK but is far from 100%. Can anyone suggest a tool that does this for me ?
Or suggest an idiot-proof way of solving this ?
I've tried using the 'grep' tool but find it annoying that it is case-sensitive - unless there is a way round this ?
Any help would be appreciated.
Thanks in advance
Steve
 
There is an excellent shareware program called Textpad ( for download) which has a "find in files" facility with a caseless option. It produces a grep-like output which might suit you. It's also the best general text editor I've seen.
 
Thanks. I'll give this tool a shot.
Steve
 
As good as the tool might be it's not 100% for me. It's fine with the .pas files (as is my test application tool) but struggles with the .dfm files. It reads the dfm file as one line of text and outputs this.
Ideally I'm looking for a solution that resembles Delphi's view of the 'dfm' files - that is when you select a form/datamodule, right click and select 'View As Text'.
Can anyone tell me how this can be achieved ??
Thanks again
Steve
 
hi,
go to and download Gexperts for your delphi version it is for free. It has a search engine which is very fast it searches pas, dfm and directories for a given string and it has a lot of other functions in it.
Check it out
Steph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top