How to check these 2 lists and those numbers that are in the second list box, retired in the first.

Delphi ... Here I have 2 listbox `a, with items:

В первом: 1 10 100500 во втором: 1 5 100500 

It is necessary for the prog to check these 2 sheets of the box and the numbers that are in the second list box to be deleted in the first, that is, only "10" should remain in the listbox 1

  • @Maykop, According to the rules of the forum, questions should not be limited to solving or completing student assignments. Please clarify what you have done yourself and what did not work out. - KaZatsa

1 answer 1

Elementally by two cycles (nested), compare both listboxes, and remove duplicate elements from the first Lisbox. If the author shows that he did not succeed - I will help correct the error.

  • one
    Anyone who wants to write the author a ready code, I propose to look at the history of his questions .... - Vladimir Klykov
  • one
    and that he has 0% accepted answers. - Nofate
  • minus for not receiving a single answer - Vladyslav Matviienko