Two choices -
a) Use the functions in classes units
procedure ObjectBinaryToText(Input, Output: TStream);
procedure ObjectTextToBinary(Input, Output: TStream);
b) Get the GExperts Package for the IDE - It was freeware and could do something like
this. There was also full source available last year sometime.
http://www.gexperts.com/
Myles.
-----Original Message-----
From: Steven Wild [SMTP:[EMAIL PROTECTED]]
Sent: Friday, April 30, 1999 12:19 PM
To: Multiple recipients of list delphi
Subject: [DUG]: Reading dfm files
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
application/ms-tnef