Registriert seit: 6. Apr 2005
10.109 Beiträge
|
Re: Anzeige bringt fatalen Fehler
27. Okt 2005, 22:08
Probier mal so:
Delphi-Quellcode:
procedure TBoardForm.TcpServerAccept(Sender: TObject;
ClientSocket: TCustomIpClient);
var
ReceivedLn: String;
i, j: Integer;
ReceivedKind: String;
ReceivedInfo: String;
begin
RecievedLn := ClientSocket.ReceiveLn;
i := Pos('#', ReceivedLn);
ReceivedKind := Copy(ReceivedLn, 1, Pred(i));
if ReceivedKind = 'Info') then
begin
ReceivedInfo := Copy(ReceivedLn, Succ(i), Length(ReceivedKind) - i);
if ReceivedInfo = 'NewGame'
then ShowMessage('Test!');
// CheckInfo(ReceivedInfo);
end;
end;
Grüße vom marabu
|
|
Zitat
|