Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Cannot inherit from form ''. It contains a component with a blank name...


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 5 - Last Post: Dec 22, 2016 7:38 AM Last Post By: Alex Belo
Toby Dobbs

Posts: 77
Registered: 9/24/16
Cannot inherit from form ''. It contains a component with a blank name...  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 21, 2016 6:31 AM
I moved a large number of components from one form into a frame so that I could better encapsulate their functionaility. When I attempt to include this frame in the main form I am met with the error seen in the description. I can't find a solution to this problem - any guidance would be appreciated.
Alex Belo

Posts: 626
Registered: 10/8/06
Re: Cannot inherit from form ''. It contains a component with a blank name...  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 21, 2016 8:24 AM   in response to: Toby Dobbs in response to: Toby Dobbs
Toby Dobbs wrote:

When I attempt to include this frame in the main form I am met with
the error seen in the description. I can't find a solution to this
problem - any guidance would be appreciated.

Googling for error message (this is the first thing which I do if I see
something confusing) returns some complaints on this problem.

Is this relevant:

http://docwiki.appmethod.com/appmethod/1.17/topics/en/Release_Notes

http://docwiki.appmethod.com/appmethod/1.16/topics/en/Using_FireMonkey_Views

--
Alex
Toby Dobbs

Posts: 77
Registered: 9/24/16
Re: Cannot inherit from form ''. It contains a component with a blank name...  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 21, 2016 8:35 AM   in response to: Alex Belo in response to: Alex Belo
I don't think so, for one thing i'm using VCL (rather then FMX) and, as far as I can tell, all components are properly named.
Alex Belo

Posts: 626
Registered: 10/8/06
Re: Cannot inherit from form ''. It contains a component with a blank name...  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 21, 2016 9:05 AM   in response to: Toby Dobbs in response to: Toby Dobbs
Toby Dobbs wrote:

I don't think so, for one thing i'm using VCL (rather then FMX) and,
as far as I can tell, all components are properly named.

OK. More googling returns

https://www.devexpress.com/Support/Center/Question/Details/CQ56356

"I have researched it and found out that the cause of the problem is
that your base form contains the BarSeparator object which is marked as
unknown because it is not inherited from any control. <...> You can
resolve this issue by removing the TdxBarSeparator element from the dfm
file."

Bad object:

object TdxBarSeparator
...
end

Normal object:

object dxBarScreenTipRepository1: TdxBarScreenTipRepository
...
end

http://www.devsuperpage.com/search/Articles.asp?ArtID=270729

When i try to inherit from a pagemodule or datamodule that contains an
Adapter (i.e. TAdapter or TDataSetAdapter etc.) i receive the
following alert message: "Error creating form: cannot inherit from
form 'PageName'. It contains a component with a blank name property."
(where PageName is the name of the pagemodule or datamodule that
produce the error) If i remove the adapters, i can inherit correctly.
How can i solve this problem?

Every adapter has two unnamed properties: Data and Actions - on the
master form just click on them and name them in Object Inspector.

--
Alex
Toby Dobbs

Posts: 77
Registered: 9/24/16
Re: Cannot inherit from form ''. It contains a component with a blank name...  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 22, 2016 1:23 AM   in response to: Alex Belo in response to: Alex Belo
Thanks again but neither of these seem to be my problem - which is why I asked on the forum for assistance in the first place.

My forms don't contain these objects - the problem itself may be similar but how am I supposed to find it?
Alex Belo

Posts: 626
Registered: 10/8/06
Re: Cannot inherit from form ''. It contains a component with a blank name...  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 22, 2016 7:38 AM   in response to: Toby Dobbs in response to: Toby Dobbs
Toby Dobbs wrote:

My forms don't contain these objects - the problem itself may be
similar

Yes, information in mentioned posts is only food for thought.

but how am I supposed to find it?

According to information in mentioned posts you can:

1) scan dfm file(s) for wrong description of object;

2) scan components in the frame for unnamed properties (not names of
components itself but theirs properties which must have names);

3) remove components from frame one by one to find evil component.

If none of the methods does not help then I do not know...

There is also possible a bug in the IDE...

--
Alex
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02