TreeView1.Items.BeginUpdate;
//vor der Schleife = ok
TreeView1.Items.Clear;
for z := 0
to DKStringGrid4.RowCount - 2
do
begin
If StrToInt(DKStringGrid4.Cells[0,z]) = ComboBox1.ItemIndex+ 1
then
begin
i := 2;
For i := 2
to StrToInt(DKStringGrid4.Cells[1,z])+1
do
begin
CityTable.Locate('
Index', DKStringGrid4.Cells[i,z] ,[]);
Str1 := CityTable.FieldByName('
City').AsString;
Str1 := Str1 +'
('+CityTable.FieldByName('
Station').AsString+'
)';
s := s + Str1+ #09;
Application.ProcessMessages;
//imho überflüssig
end;
AddTreeNodePathDupIgnore(TreeView1,s,#09,ReNode,AddSort);
s := '
';
TreeView1.Items.EndUpdate;
//Innerhalb der Schleife ???
Application.ProcessMessages;
//imho überflüssig
end;
end;