Delphi - Where does the IDE pick a list of form names?

Especially to fill out the "inherited elements" and "form creation" dialogs

I ask because from a few days I can’t create inherited elements since the space (or tab?) Is added to each form name, so I get an error message at the end when inheritance like basewindow 2 is not a valid identifier "(note space between basewindow and 2)

This blocks me very much, since all forms in the project are inherited from a common ancestor ...

Note: there is no space on newly created servers, and they work fine. This is a d2010 plan setup; additional IDE tools or utilities are not loaded; Note 2: this applies to only one project

Any idea?

thanks in advance Didier

+4
source share
1 answer

I did some research on this issue in the question: Register my own form so that I can inherit it from several projects without copying the form to the object repository folder . Although this is not in my answer, I have since come to the conclusion that the IDE will only allow you to inherit elements explicitly added to the project.

Therefore, I would say that it takes the inherited elements from the dpr file. Type string

UnitOKFrame in 'UnitOKFrame.pas' {OKFrame: TFrame}, 

Adds an OKFrame to the list of inherited elements.

So, my β€œhunch” is that somehow you got extra spaces between the name of your forms / frames and the colon separating it from its type. Sort of:

  UnitOKFrame in 'UnitOKFrame.pas' {OKFrame : TFrame}, 

If this is true, I would do a QC report with Embarcadero. They could have worked to make the dpr parsing a little more robust and friendly to the poor programmers :-) ...


As mentioned in the comments on Uwe, forms are included without a type identifier:

  UnitLogonForm in 'UnitLogonForm.pas' {LogonForm}, 

in this case, you may have extra spaces between curly braces surrounding the actual name:

  UnitLogonForm in 'UnitLogonForm.pas' {LogonForm }, 
+11
source

All Articles