Steven,

I do it all the time, its the safest way to do global changes when 
you start using a different component app wide or migrate from one 
Delphi version to another.  Also, if the IDE refuses to open the 
form, which happens often everytime a field in the tabel is deleted, 
the only way to solve it is to edit the dfm and fix the problem.

I have an app in D1 and D3.  Let me know if you want me to email it 
to you.  It converts dfm to txt or txt to dfm for one file or all 
files in the directory.

 On 30 Apr 99 at 0:18, Steven Wild wrote:

> I have a need to be able to read in a dfm, alter it,  and write 
> it back to the  dfm file from within another Delphi app.
> 
> Does anyone have some code that will read a dfm into ledgeable 
> form...  into a TstringList would be very helpful ...  and then 
> write the altered one back out to file.
> 
> Why???  Well I want to be able to test and set a value on about 1000 
> instances of a small group of components where they are used.  Rather 
> than open all forms in the project and manually look for each 
> possible instance of the components, I want to just be able 
> to automate the process.  I just thought that automating processes is 
> what we are all about so why not do it to dfms as well!
> 
> Steven Wild
> Wild Software Ltd
> ---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> 
Rohit

======================================================================
CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
PH    (649) 489-2280 
FX    (649) 489-2290
email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
======================================================================

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to