Autor Beitrag
Sleipnir
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16

Win XP, Ubuntu 7.10

BeitragVerfasst: Mo 19.11.07 16:44 
Hallo, hab mal eine ganz dumme Frage:
Eine Unit soll auf die Form einer anderen Unit des selben Projekts zugreifen(ein Editfeld).
Bekomme da immer die Fehlermeldung "Undefinierter Bezeichner". Wo mache ich genau die Form mit der Unit bekannt?
Hab schon versucht die andere in uses einzubinden, bekomme da aber den Fehler "Überkreuzender Bezug zweier Units"
Steh grad echt aufm Schlauch :oops:
Xion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Mo 19.11.07 16:47 
user profile iconSleipnir hat folgendes geschrieben:
"Überkreuzender Bezug zweier Units"


das bedeuted, dass du Unit1 mit Unit2 verlinkst und umgekehrt (rekursiv). Um auf das Edit zuzugreifen musst du Unit2 in Unit1 einbinden und (so vermute ich mal) Form2.Edit schreiben (du musst nur deßhalb nicht Form1.xyz schreiben, weil es eine TForm1 procedure ist)

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 19.11.07 16:48 
Mach mal das Uses im Implementation-Teil der Units.