Next, I have a timer that fills 2 fields in a webbrowser, it does the following function ...
var
pega : string;
begin
pega := Listaimportados.Items[i];
I := i +1
nome.text := Copy(pega, 0, 10);
Webbrowser1.OleObject.Document.all.Item('login', 0).value := nome.text;
In this he repeats the action every 4 seconds, as you can see i + 1 jumps to the next line, which in case it is imported into listboxes (listbox).
But I have a problem, if I enter less than one item in the listbox, it starts to give error, list of bounds, how to solve?