Autor Beitrag
dragon77
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Do 15.12.05 00:19 
Hi,

habe noch ein komisches Problem mit forms.

Habe 2 Forms in meinem Projekt. Auf der Form 1 habe ich z.b. ein Textfeld. txtID. Der text ist am Anfang gleich den Namen. Also auch txtID. Wenn ich jetzt etwas da reinschreibe und über ein Button das 2. Formular aufrufen sollte in dem label dort der text aus dem Textfeld stehen. (Also das was ich da reingeschrieben habe)

ausblenden Delphi-Quelltext
1:
label3.caption := form1.txtID.text;					


aber anstatt den aktuellen Inhalt auszugeben gibt er mir den Inhalt des Textfeldes aus der per default eingestellt ist. Also txtID

??? Versteh ich nicht. Hilfeeeeee

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
Moderiert von user profile iconTino: Titel geändert.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Do 15.12.05 00:38 
ausblenden Delphi-Quelltext
1:
Form2.label3.caption := form1.txtID.text;					


Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
dragon77 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Do 15.12.05 10:12 
Neeee,

das kann ja nicht gehen. Ist ja das quasi das gleiche.

Das ist total komisch. Normalerweise geht das so. Aber er macht es nicht.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Do 15.12.05 10:25 
Das selbe Ist Das Nicht, oder Ich hab das Falsch verstanden.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Form2.Label3.Caption:=TextID.Text;
  Form2.Show;
end;