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

Is form created ??

How can I detect if a certain form has been created like:

Application.CreateForm(TTestForm, TestForm);


0
Tulip
Asked:
Tulip
1 Solution
 
BlackManCommented:
You can test if the forminstance is Nil, like this:

If Not Assigned(TestForm) Then
  TestForm := TTestForm.Create(Self);
0
 
TulipAuthor Commented:
Thanks, that's it !!
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

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