Hello,
I changed my programm from couple ComboBoxes in a row to a single listview box where I display all my stuff from the SQL.
Showing the data´s is working perfectly, but I have some problems with the Select function.
I use this code
procedure TForm7.ListView1SelectItem(Sender: TObject; Item: TListItem;
Selected: Boolean);
begin
Edit11.Clear;
Edit11.Text := ListView1.Items[ListView1.ItemIndex].Caption;
end;
My first click is ok and I get the right value in the Edit field. But on my second click to a different row i get the Out of Bounds (-1) error.
Any ideas ?
Regards Tim