 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Baliga, Narasimha Guest
|
Posted: Wed Jun 28, 2006 8:12 am Post subject: DFM Parser logic |
|
|
Hi,
Not sure if I should ask this question on this news group. Please guide me
the correct NG in case, this question is not appropriate.
I am looking for some "logoc" to parse DFM file and find out some property
value set for a given component should it be declared in the DFM file.
Please let me know if anyone is aware of such logic or source code...
regards
Baliga |
|
| Back to top |
|
 |
Christer Guest
|
Posted: Wed Jun 28, 2006 8:12 am Post subject: Re: DFM Parser logic |
|
|
Hi,
You could check out our Pascal Analyzer product, which you can get from
www.peganza.com
Among the 40+ reports generated by Pascal Analyzer from your source code,
there are two that could be useful for you:
Property Value Report - reports values for selected properties of selected
components
Missing Property Report - reports missing properties for selected components
You can download an evaluation version of Pascal Analyzer at our site. Even
though the evaluation version has limitations, these two reports are not
limited in any way.
Regards
Christer
Peganza Software
"Baliga, Narasimha" <bnbaliga (AT) yahoo (DOT) com> wrote in message
news:44a20bb9$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi,
Not sure if I should ask this question on this news group. Please guide
me the correct NG in case, this question is not appropriate.
I am looking for some "logoc" to parse DFM file and find out some property
value set for a given component should it be declared in the DFM file.
Please let me know if anyone is aware of such logic or source code...
regards
Baliga
|
|
|
| Back to top |
|
 |
Erik Berry Guest
|
Posted: Wed Jun 28, 2006 8:12 am Post subject: Re: DFM Parser logic |
|
|
Baliga, Narasimha wrote:
| Quote: | I am looking for some "logoc" to parse DFM file and find out some property
value set for a given component should it be declared in the DFM file.
Please let me know if anyone is aware of such logic or source code...
|
Look in Classes.pas for TParser which can be used to parse DFM files.
There is an example of how to use it in Classes.pas as well.
Erik |
|
| Back to top |
|
 |
Charles McAllister Guest
|
Posted: Wed Jun 28, 2006 11:18 pm Post subject: Re: DFM Parser logic |
|
|
Eddie Shipman wrote:
| Quote: | To be honest, you can use TReader in Classes.pas. Outlined in the
ObjectBinaryToText function, you can see how the DFM is parsed by the
IDE.
i basically followed this logic when writing my parser. |
but once you have that in a tree structure its easy to navigate.
i should mention too that codewrench will get symbol info from the dfm and the pas file.
http://www.codewrench.org |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|