Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var a: integer;
begin
for a:= 0 to CheckListBox1.items.count-1 do
if CheckListBox1.Checked[a] then CheckListBox1.Items.Move(a, 0)
end;
[\code]
to sort by checked and in alphabetical order is another question.
Aaron
var
i, j: integer;
begin
i := 0;
while (i < CheckListBox1.Items.Count-1) do
begin
if CheckListBox1.Checked[i] = true then
inc(i)
else
break;
end;
j := i;
while (j <= CheckListBox1.Items.Count-1) do
begin
if CheckListBox1.Checked[j] = true then
begin
CheckListBox1.Items.Exchange(j, i);
CheckListBox1.Checked[i] := true;
CheckListBox1.Checked[j] := false;
inc(i);
end;
inc(j);
end;
end;