Stemon63 Posted February 15, 2022 Share Posted February 15, 2022 Hi, WHEN a combobox with Items and values? When an advanced lookups with descriptions and values? From direct items or from datasets? WHEN a DBlookup with a multicolumn popup? With this fantastic product we are in trouble with the dumbest things that should be basic. We waste a lot of time on nonsense... Thanks in advance. Link to comment Share on other sites More sharing options...
x11 Posted February 15, 2022 Share Posted February 15, 2022 57 minutes ago, Stemon63 said: WHEN a combobox with Items and values? /fill for .... do comboColor.Items.AddObject(sColorName, Pointer(rgb)); //select comboColor.ItemIndex := comboColor.items.IndexOfObject(Pointer(rgb)); Link to comment Share on other sites More sharing options...
x11 Posted February 15, 2022 Share Posted February 15, 2022 59 minutes ago, Stemon63 said: WHEN a DBlookup with a multicolumn popup? use ; Link to comment Share on other sites More sharing options...
Stemon63 Posted February 15, 2022 Author Share Posted February 15, 2022 Hi x11, thank you, for combobox, i have a lot of DBCombobox that have values (integer) and description (strings). How I can manage comfortably them, in DB components, without temp variables? I need integers to store and description in popup. Also for DBLookupCombobox, we need a "decent" grid in popup for multicolumn, with headers and column separators. In short, a dedicated component without writing useless and redundant code. Just like the long awaited Listview 🙂 Thanks a lot Link to comment Share on other sites More sharing options...
picyka Posted February 15, 2022 Share Posted February 15, 2022 4 horas atrás, x11 disse: /fill for .... do comboColor.Items.AddObject(sColorName, Pointer(rgb)); //select comboColor.ItemIndex := comboColor.items.IndexOfObject(Pointer(rgb)); Falcon Store - Componentes Delphi, uniGUI, VCL, FMX e IntraWeb (falconsistemas.com.br) FSComboBox Link to comment Share on other sites More sharing options...
x11 Posted February 16, 2022 Share Posted February 16, 2022 14 hours ago, Stemon63 said: i have a lot of DBCombobox If you use SQL-database, then do not use DB-Aware components (DBEdit, DBCkeckBox, DBCombobox). Use Edit, CheckBox, Combobox etc. Link to comment Share on other sites More sharing options...
Stemon63 Posted February 16, 2022 Author Share Posted February 16, 2022 Hi x11, My intention is to use the DB components instead. I have hundreds of forms with tons of fields, and I certainly can't use local variables to do the same job that DB components can do without writing additional code. Your reasoning is valid if you have masks with few fields to present, but it is absolutely not valid in my case. A DBCombobox with descriptions and values is not the end of the world to be built natively. As well as a better done multicolumn DBLookup, which is already present in ExtJS. Link to comment Share on other sites More sharing options...
Recommended Posts