Delphi-Quellcode:
procedure TfrmMainForm.ListBoxShow;
var
EdVariable: string;
LbCount,i : integer;
begin
EdVariable := frmMainForm.EdNickname.Text;
LbCount := Memo1.Lines.Count;
if LbCount <= 0 then begin
i := 0;
end;
if EdVariable <> '' then begin
i := Memo1.Lines.Count;
i := i+1;
Memo1.Lines.Add(frmMainForm.EdNickname.Text + ' ' + '[' + InttoStr(i)+ ']');
Okay habs hinbekommen trotzdem Danke