Autor Beitrag
Force
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 143

Ubuntu Jaunty
FreePascal
BeitragVerfasst: Sa 16.09.06 14:29 
Hi!

Ich hab eine Komponente, die erst zur Laufzeit erstellt werden soll, weshalb ich dann

ausblenden Delphi-Quelltext
1:
UDPSocket.OnReceive := UDPOnReceive;					


benutzen muss. Das Problem ist allerdings, dass ich jetzt in der Procedure nicht auf Komponenten/Proceduren aus TForm1 zugreifen kann, da die Procedure UDPOnReceive zwischen var und implementation deklariert wird, ich also noch nicht einmal checkbox1.checked:=true setzen könnte...

Wenn ich allerdings in der Procedure ein TForm1. vor die Komponente setze (TForm1.checkbox1.checked:=true) dann motzt der Compiler rum und und meint:

Zitat:
[Error] adf_p.pas(95): E2096 Method identifier expected
[Error] adf_p.pas(95): E2066 Missing operator or semicolon
[Error] adf_p.pas(96): E2096 Method identifier expected
.
.
.



Kann mir da jemand helfen??
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: Sa 16.09.06 15:22 
Hi
probiers mal ohne dem T bei TForm1, also nur Form1.CheckBox.Checked:=True;

_________________
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)
Force Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 143

Ubuntu Jaunty
FreePascal
BeitragVerfasst: Sa 16.09.06 16:32 
uff, das hätte mir auch einfallen können :D :D

Danke, das funktioniert *freu* :lol: