I want to make a TLabel caption show the items of a TListbox with regular intervals in a loop.
In Listbox1: TListbox I have these items:
Item1
Item2
Item3
Item4
and I have a Label1: TLabel that I want to show each item of Listbox1 in turn for a periode of 4 seconds. After the last item is shown, it should return to show the first one.
I have no idea how to do it but I tried with this code.. but it isn't working
var
i:integer
begin
for i:=0 to Listbox1.Items.count do
Label1.Caption := Listbox1.items[i];
Is there any way to do it?