• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

dynamicly creating frames problem

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
Dmitry_
Asked:
Dmitry_
1 Solution
 
kretzschmarCommented:
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
 
Dmitry_Author Commented:
kretzschmar: Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now