[solved] Save ItemIndex of DBComboBox lazarus / 16-Databases ---------------------------------------------------------------------- fpcoder · 2014-10-26 00:59 Lets say there are three choices: (small, medium, big) to choose from. I'd like to use a DBComboBox, not a DBLookupComboBox, because it feels like overkill to create a lookuptable and a ListDataSet just for that. Whats the best solution to store the ItemIndex of the DBComboBox instead of the displayed Item string? (DBRadioGroup seems to handle this with a Values list) ---------------------------------------------------------------------- Mike.Cornflake · 2014-10-26 03:24 Is this all you want to do?   Why don't you use a TcomboBox and handle the read writes  youself. ---------------------------------------------------------------------- fpcoder · 2014-10-27 02:35 Thanks Mike, thats a solution. [Edit] Later I discovered that the RXLib trunk version for Lazarus has a DBComboBox that does exactly whats needed. That pack has a multitude of other components too. Quote from: Mike.Cornflake on October 26, 2014, 04:24:07 amIs this all you want to do?   Why don't you use a TcomboBox and handle the read writes  youself.