TComboBox works properly.
Items is created statically - at design time.
public
LastGroup: TList<TAdvComboBox>;
...
LastGroup := TList<TAdvComboBox>.Create;
LastGroup.Add(advcbxLastGroup01);
...
// In the class
procedure TRoundNew.GetGrData;
FGrData.Last.LastGroup := Frm.LastGroup[I].ItemIndex
No error, inaccessible value...
Items.IndexOf(..) didn't help either.
I tested title and text. They are fine.
This did the trick.
var AA: TAdvComboBox;
AA := Frm.LastGroup[I];
FGrData.Last.LastGroup := AA.ItemIndex;