listCountries.ItemIndex := i;
listCountries.Selected := listCountries.Items[i];
But both types of call such as ..- listCountries.ItemIndex := i;- listCountries.Selected := listCountries.Items[ i];do not work for me. ...
>>> Is anyone having success in selecting the item of a TListView?I currently also work on SELECTING AN ITEM of a TListView.- Lazarus 1.4.0- Windows 7 64 BitBut both types of call such as ..- listCountries.ItemIndex := i;- listCountries.Selected := listCountries.Items;do not work for me. ...
ListBox1.ItemIndex := SpinEdit2.Value;
The combination of ListView.ItemIndex:= i; ListView.Selected;did the job now.
@PeterXnothing happens in my app .. :-(