Solved

dynamicly creating frames problem

Posted on 2001-07-24
2
133 Views
Last Modified: 2010-04-04
Hello,
I'm trying to create more than one instances of the same frame.
p := TFrame2.Create(Self);
When I created second instanse, I got exception with message:
"A component named Frame2 already exists".
How can I solve this problem?
0
Comment
Question by:Dmitry_
2 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 100 total points
ID: 6311385
just rename the framename after creation to a unique name

(the name is stored in the object self,
so that a second creation cauases this error)
0
 

Author Comment

by:Dmitry_
ID: 6311415
kretzschmar: Thanks!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Newbie Thread Programming 1 161
Best Firemonkey component pack 1 119
Communication Between RC4 Delphi <-> PHP 3 123
Performance of SQL statement 37 127
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question