James Sugrue wrote on Friday, 15 November 2002 4:53 p.m.: > Try this url : http://www.delphi3000.com/articles/article_3438.asp >
Wasn't particularly useful, only covered editing DFMs manually. I did a bit more digging this morning. In case anyone else is interested, it turns out that I can still use the TParser class for this, I just have to convert the DFM to text in memory. All you need to do is use the ObjectResourceToText function to convert it (writing out to a TMemoryStream) and then parse that. If you want to get a bit fancier you can actually read the resource in properly using TStream.ReadComponentRes, but then it seems your app needs to know about all of the classes being used in the DFM. Cheers, Paul --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/