Encontré en este hilo:
http://www.clubdelphi.com/foros/showthread.php?t=33311
Una línea de código que no comprendo.
Código Delphi
[-]
procedure TForm1.Button1Click(Sender: TObject);
var
I:Integer;
begin
if ListBox1.Items.Capacity=0 then
begin
for I:=0 to TreeView1.SelectionCount-1 do
ListBox1.Items.Add(TreeView1.Selections[i].Text);
end;
end;
Me refiero a la línea que contiene Capacity (la marqué en azul).
Les agradeceré un comentario aclaratorio.
Un saludo y gracias