for i := 0 to Min(liste_image.Count, form2.ListBox1.Items.Count) - 1 do for j := 0 to image_selectionnee.Count - 1 do if liste_image[i] = image_selectionnee[j] then if form2.ListBox1.MultiSelect then form2.ListBox1.Selected[i] := true else begin form2.ListBox1.ItemIndex := i; break; end;
for i := 0 to Min(liste_image.Count, form2.ListBox1.Items.Count) - 1 do for j := 0 to image_selectionnee.Count - 1 do if form2.ListBox1.MultiSelect then form2.ListBox1.Selected[i] := (liste_image[i] = image_selectionnee[j]) else if liste_image[i] = image_selectionnee[j] then begin form2.ListBox1.ItemIndex := i; break; end;
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionvar Nbr: Integer; Nbr := Min(liste_image.Count, form2.ListBox1.Items.Count) - 1;