Hi
Entweder habe ich ein KOMPLETTES Brett vorm Kopf gerade, oder sonste was. Er sagt es fehle ein 'end', aber wo?
Bitte Schnelle Hilfe!
Delphi-Quellcode:
if (Command[1]+Command[2]+Command[3]+Command[4]+Command[5]) = 'LOGIN' then
begin
OK:=true;
for i := 0 to ListBox1.Count-1 do if Uppercase(ListBox1.Items[i])=Copy(Command, 6, Length(Command)) then OK:=false;
if ok then
begin
if (Copy(Command, 6, Length(Command)) = 'HAMSTER') or (Copy(Command, 6, Length(Command)) = 'IGEL') then
begin
ListBox1.Items.Add(Copy(Command, 6, Length(Command)));
AThread.Connection.WriteLn('VER:0.1');
lbProcesses.Items.Insert(0, 'Sending Command: loginok');
end;
end;
end
else
begin
AThread.Connection.WriteLn('loginnotok');
end;