Autor Beitrag
Nano-Ware
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 394
Erhaltene Danke: 7



BeitragVerfasst: Di 20.04.10 18:20 
Hey,

ich habe ein Projekt, in diesem befinden sich 2 Formulare. Ich möchte jetzt, dass beim starten der Anwendung geprüft wird, ob eine bestimmte Datei vorhanden ist. Wenn ja soll ganz normal die FRM_Main aufgerufen werden. Falls diese Datei fehlt, soll das Formular FRM_FirstStart aufgerufen werden. Ich habe es schon mit vielem versucht... Leider hat nichts funktioniert...

MfG Nano-Ware
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Di 20.04.10 18:59 
Wo genau liegt das Problem, an welcher Stelle scheiterts? Im Prinzip brauchst ja nur ein If(FileExists('myFile'))then...

_________________
Wissenschaft schafft Wissenschaft, denn Wissenschaft ist Wissenschaft, die mit Wissen und Schaffen Wissen schafft. (myself)
Nano-Ware Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 394
Erhaltene Danke: 7



BeitragVerfasst: Di 20.04.10 21:14 
achso ja^^ das Problem ist, wie ich das starten der 2 verschiedenen Forms löse... Denn wenn die eine Form erscheint darf die andere nicht sichbar sein
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Di 20.04.10 21:33 
Such mal nach Splash Screen, vielleicht hilft das.

_________________
PROGRAMMER: A device for converting coffee into software.
Chemiker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 194
Erhaltene Danke: 14

XP, Vista 32 Bit, Vista 64 Bit, Win 7 64 Bit, Win 10, Win 11
BDS 2006, RAD Studio 2009+C++, Delphi 13, VS 2010 Prof.
BeitragVerfasst: Di 20.04.10 22:23 
Hallo Nano-Ware,

warum soll das Form: FRM_FirstStart aufgerufen werden, wenn die Datei nicht vorhanden ist?
Um welche Datei handelt es sich?

Im Augenblick fehlen einfach Informationen um konstruktiv weiterhelfen zu können.

Bis bald Chemiker
baka0815
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 489
Erhaltene Danke: 14

Win 10, Win 8, Debian GNU/Linux
Delphi 10.1 Berlin, Java, C#
BeitragVerfasst: Mi 21.04.10 12:52 
if (FilExists('Datei')) {
Form1.Show;
} else {
Form2.Show;
}

?