Autor Beitrag
youpy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

win XP
7 Enterprise
BeitragVerfasst: Mo 03.05.04 19:09 
bei folögendem code zeigt er mit den eingegebenen text nciht im ausgabefeld (txtaus.text) sondern als formularname an.. wieso?[/quote]


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
procedure TForm1.FormCreate(Sender: TObject);
begin
ss.Active:= true;
cs.Active:= true;
end;

procedure TForm1.Button1Click(Sender: TObject);
var texteingabe:string;
begin
  text:= txtein.Text;
  cs.Socket.SendText(texteingabe);

end;

procedure TForm1.SSClientRead(Sender: TObject; Socket: TCustomWinSocket);
var textausgabe:string;
begin
textausgabe:=Socket.ReceiveText;
txtaus.text:= textausgabe;
end;


Moderiert von user profile iconPeter Lustig (20:13, 03.05.2004): Code- durch Delphi-Tags ersetzt

_________________
shice wtj
maze2k
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 252

WIN 95, WIN NT 4.0, WIN 98, WIN 98SE, WIN 2000, RedHat Linux 7.3, Mandrake Linux 9.2, Knoppix Linux 3.3
D6 Pers
BeitragVerfasst: Mi 05.05.04 15:28 
Zitat:
var texteingabe:string;
begin
text:= txtein.Text;


Da stimmt wohl was nicht.
text solltest du durch texteingabe ersetzen ;)

_________________
Wer das Konzept der Unendlichkeit verstehen will, muss nur das Ausmaß menschlicher Dummheit betrachten. (Voltaire)