0

Is there any way from which I can extract all component names and their length of Delphi project file or I can do it one by one by iterate all forms in the project. And I want to store result in any file say .txt, word, pdf etc.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
GARY SINGH
  • 39
  • 1
  • 7
  • Delphi project files don't usually contain component names. That's not what you mean is it? You mean the components defined in your .dfm files I guess? So surely you can write a simple script to pick those out. Do you know any scripting languages? – David Heffernan Dec 15 '14 at 10:18
  • you can use something like this - http://www.felix-colibri.com/papers/colibri_utilities/dfm_parser/dfm_parser.html – RBA Dec 15 '14 at 11:10
  • 1
    (but note that Felix' parser chokes on the [n] numbers in the .DFM: http://stackoverflow.com/questions/10916294/strange-numbers-in-delphi-dfm-files-origin-and-necessity) – Jan Doggen Dec 15 '14 at 11:22
  • What do you mean by _and their length_? – NGLN Dec 15 '14 at 14:14
  • @NGLN I **guess** he is talking about the *width* :o) – Sir Rufo Dec 15 '14 at 16:05
  • @DavidHeffernan i know javascript, ruby, python. – GARY SINGH Dec 16 '14 at 04:36
  • @NGLN by length i mean like if it is a label what is it length of string it can hold without clipping or wrapping similar for button as well – GARY SINGH Dec 16 '14 at 04:38
  • I don't really understand what you are asking. What's stopping you writing the code? – David Heffernan Dec 17 '14 at 07:51

0 Answers0