Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Many copies of the same form

Status
Not open for further replies.

TimSNL

Programmer
Sep 11, 2001
119
AU
Hello.

I have a TForm that I am displaying with Form.Show (this is not an MDI application).
The user may make any number of these forms (at the same time) while the program is runnung.
I don't want to have a variable in the code for every form the user may create.
Is there any other way to handle this?

I thought I saw something about how to do this once but now I can't remember it. Oh, how often that happens ;)

Thanks for your help.
Tim
 
Ops, let me refine my question a little more ...

When we repeatedly create a TForm with the same variable name, Delphi puts "_1" after the second one, then "_2", etc.

Is this safe to use, or is there a better method for this?

Tim
 
You could keep an array of form -names or -references to make management easier?

HTH
TonHu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top