Autor Beitrag
Das S
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: Sa 24.07.04 09:05 
Hi,

ich möchte eigentlich nur überprüfen, ob ein Fenster mit

application.createform(Tfenster,fenster)

created wurde oder nicht.

Wenn ja, dann soll es geschlossen werden.

Wie bitte kann ich das prüfen ?

Vielen Dank

Das S
mirage228
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 338

Win 7 Prof.
Delphi 2005 Prof., Delphi 2010 Prof.
BeitragVerfasst: Sa 24.07.04 09:58 
Das S hat folgendes geschrieben:
Hi,

ich möchte eigentlich nur überprüfen, ob ein Fenster mit

application.createform(Tfenster,fenster)

created wurde oder nicht.

Wenn ja, dann soll es geschlossen werden.

Wie bitte kann ich das prüfen ?

Vielen Dank

Das S


Prüfe einfach, ob Fenster <> nil ist.

mfG
mirage228

_________________
May the source be with you, stranger.
Das S Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: Sa 24.07.04 10:06 
Mmmmmmmmm, und wie mache ich das ?
mirage228
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 338

Win 7 Prof.
Delphi 2005 Prof., Delphi 2010 Prof.
BeitragVerfasst: Sa 24.07.04 10:24 
Das S hat folgendes geschrieben:
Mmmmmmmmm, und wie mache ich das ?


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
if Fenster <> nil then
  // ...

// ODER
if Assigned(Fenster) then
  // ...


;)

mfG
mirage228

_________________
May the source be with you, stranger.
Das S Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: Sa 24.07.04 10:37 
Oh, oh, einfacher geht es nun wirklich nicht mehr. :oops:

Vielen Dank