Autor Beitrag
Adryr Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18

Win XP und Win7
Delphi 7
BeitragVerfasst: Do 15.07.10 11:15 
es gibt schon Fehlermeldungen.
Und zwar das der jeweilige Bezeichner unbekannt ist.
Einloggen, um Attachments anzusehen!
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Do 15.07.10 11:22 
Mhm, du hast uns Unit2 gegeben, in der TForm2 liegt. Einbinden tust du Unit1 (sprich TForm1 vermutlich), aber nutzen tust du TForm3 (also Unit3)? Kann natürlich sein das du in Unit1 TForm3 hast, aber deine dpr sieht nicht danach aus.

Btw: In Klassen bitte auf globale Variablen zugreifen, wenn es nicht nötig ist.

Bei dir wäre z.B. statt:
ausblenden Delphi-Quelltext
1:
if Key = 'x' then TForm3.Create(Form2);					

ausblenden Delphi-Quelltext
1:
if Key = 'x' then TForm3.Create(self);					

wesentlich sauberer (wobei du selbst den Parameter weglassen kannst). Und btw.: du hast da eine interessante Konstruktions: erzeugst Form3, aber öffnest es nie und gibst es auch nie frei? ;)

Btw: Gib mal bitte die genaue Fehlermeldung, also welcher Bezeichner fehl schlägt
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Do 15.07.10 11:38 
user profile iconHeiko hat folgendes geschrieben Zum zitierten Posting springen:
Btw: In Klassen bitte nicht auf globale Variablen zugreifen, wenn es nicht nötig ist.
:P

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
Adryr Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18

Win XP und Win7
Delphi 7
BeitragVerfasst: Do 15.07.10 13:34 
naja die Unit3 und TForm3 haben nichts mit meinem Problem zutun
die sind fuer was ganz anderes

so wie es jetzt ist kommen die Fehlermeldungen, dass saemtliche Routinen in Unit2 die mit Flotte zutun haben nicht bekannt sind.
(also: Bezeichner ... ist wurde nicht gefunden. oder so aehnlich)