Autor Beitrag
sintec
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 133



BeitragVerfasst: Mi 30.05.07 14:03 
Hallo Delphiexperten,

ich muss aus einem Form2, welches über MainForm geöffnet wird auf eine Tstringlist auf dem MainForm zugreifen.

Habe schon versucht die Forms gegenseitig unter 'uses' einzutragen, aber dann sagt er "[Pascal Fataler Fehler] form2.pas(7): F2047 Zirkuläre Unit-Referenz auf 'form2'"
also musste ich die MainForm aus dem Form2 rausnehmen.

Gibt irgend eine Möglichkeit die funktioniert?
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 30.05.07 14:13 
Jup. Am einfachsten ist es, in der 2.Form nach implementation eine zweite Uses-Liste anzulegen, und die Mainform da einzutragen.

_________________
We are, we were and will not be.
sintec Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 133



BeitragVerfasst: Mi 30.05.07 14:39 
Danke
Hat geklappt

Die Möglichkeit kannte ich noch nicht :)