Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var
- I: Integer;
- Products: IList;
- begin
- Products := MyClass.Products() as IList;
- TreeView.Items.Clear;
- TreeView.Items.BeginUpdate;
- try
- for I := 0 to (Products as ICollection).Count - 1 do
- TreeView.Items.Add(Products.Item[I]); // <- don't know what objects are you passing, so a cast to string might be wrong here
- finally
- TreeView.Items.EndUpdate;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement