Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi form 2mal starten (https://www.delphipraxis.net/33576-form-2mal-starten.html)

sakura 10. Nov 2004 11:40

Re: form 2mal starten
 
Zitat:

Zitat von tgreif
ich habe mich am ende fuer den vorschlag von Sakura entschlossen !!
funktioniert wunderbar !!

Vergiss aber nicht im OnDestory-Ereignis Deines Forms die Variable Form2 wieder auf nil zu setzen ;)

...:cat:...

Sanchez 10. Nov 2004 11:40

Re: form 2mal starten
 
Zitat:

Zitat von Robert_G
Gibt es wirklich keine Lösung für ein Singleton in Delphi OHNE globale Variable ( :? ) ?

Doch. Über eine typisierte Konstante :mrgreen:
Allerdings ist da eine globale Variable im implementation-Abschnitt wesentlich schöner, wenn auch nicht optimal.

Morpheus 10. Nov 2004 12:05

Re: form 2mal starten
 
PATSCH *mithandvorkopfschlag*

Danke Sakura, manchmal seh ich den Wald vor lauter Bäumen net...
Hatte nur die CloseAction gesetzt.

Naja nu klappts.

Danke nochmal!


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:45 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz