Guest User

Untitled

a guest
Jan 17th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. procedure TMainForm.Button1Click(Sender: TObject);
  2. begin
  3. ListBox1.Items.Add(Edit1.Text);
  4. ComboBox1.Items.Add(Edit1.Text);
  5. end;
  6.  
  7. procedure TMainForm.Button2Click(Sender: TObject);
  8. begin
  9. ListBox1.Items.Delete(ListBox1.Selected.Index);
  10. ComboBox1.Items.Delete(ComboBox1.Items.IndexOf(ListBox1.Selected.Text));
  11. end;
Add Comment
Please, Sign In to add comment