Autor Beitrag
Cash
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40



BeitragVerfasst: So 02.03.03 19:21 
Hab noch ne Frage:
Ich habe drei Formen erstellt. Ich möchte das ganze Project schließen und zwar von der Form3 aus. Ich habs mit dem Befehl "Close" versucht, aber da schließt er mir nur die momentane Form.

Wie lautet der Befehl für das ganze Project?
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: So 02.03.03 19:23 
entweder
form1.close;

oder
application.terminate;
Cash Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40



BeitragVerfasst: So 02.03.03 19:30 
Was ist denn der Unterschied zwischen den beiden Befehlen?

Form1.close

application.terminate
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: So 02.03.03 19:32 
bei application.terminate musst du nicht angeben, welches das hauptformular deines projektes ist. egal von welcher form aus du diesen befehl verwendest, es wird immer die ganze anwendung geschlossen.

bei form1.close, schließst du das hauptformular (in dem fall form1).
wenn du das haupt formular schließt, werden alle anderen fenster geschlossen.

es ist deine entscheidung, welche procedure du nimmst.
a.C.k
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93

WIN 2000
Delphi 6 Enterprise ; Delphi 7 Studio
BeitragVerfasst: Mi 05.03.03 10:50 
Schau mal hier: www.delphi-forum.de/viewtopic.php?t=1562

da siehst du die Vor- und Nachteile.

_________________
Wer nicht gerne denkt, sollte wenigstens von Zeit zu Zeit seine Vorurteile neu gruppieren.