var
i: integer;
begin
for i:= 0 to maxg do
ListBox2.Items.Add(gg[i][2]);
ListBox2.ItemIndex:= 0;
end;
procedure TForm3.Button1Click(Sender: TObject);
var
i: integer;
begin
for i:= 0 to ListBox1.Items.Count - 1 do
if ListBox2.Items[ListBox2.ItemIndex] = ListBox1.Items[i]
then exit;
ListBox1.Items.Add(ListBox2.Items[ListBox2.ItemIndex]);
end;
procedure TForm3.Button2Click(Sender: TObject);
begin
if ListBox1.ItemIndex = -1 then exit;
ListBox1.Items.Delete(ListBox1.ItemIndex);
end;
procedure TForm3.ComboBox1Change(Sender: TObject);
begin
ListBox2.ItemIndex:= LI[ComboBox1.ItemIndex];
ListBox2.TopIndex:= ListBox2.ItemIndex;
end;
procedure TForm3.Button3Click(Sender: TObject);
var
k: integer;
begin