10-13-2021, 01:18 AM (This post was last modified: 10-13-2021, 07:33 AM by Alexandre Machado.)
What exactly is incorrect? How do you build your combo box and add items to it?
I have precisely what I expect here. In this example, Item 1, 2 and 3 were added at design time, and Item 4 was added at runtime in an async event (with lots of space between "Item" and "4"). Everything works as it should.
Q.Open;
while not Q.Eof do begin
AComboBox.ItemIndex:=AComboBox.Items.Add ( Q.FieldByName('ST').AsString + AComboBox.Items.NameValueSeparator + Q.FieldByName('ID').AsString);
Q.Next;
end;
Q.Close;
T.Commit;
It works correctly with version 15.2.36 (see attachment)!
The way to success is always under construction ... but i see a light at the end of the tunnel