Can't call TBufDataSet.CreateDataSet at design time? lazarus / 31-LCL ---------------------------------------------------------------------- egsuh · 2020-12-10 05:38 I have to run the program to createdataset. Hope a menu item of "CreateDataset" is added to popup menu of TBufDataSet icon. ---------------------------------------------------------------------- Thaddy · 2020-12-10 08:32 Why? There is a strict separation of design and actual code. ---------------------------------------------------------------------- egsuh · 2020-12-11 06:27 When I design a form to edit table,  I need actual table so that I can connect data controls and fields of the table. Just dropping a TBufDataSet icon and defining FieldDefs is not sufficient to do that. The dataset must be created, and I hope this is possible at design time.  This function is especially useful when I design both of table structure and operations on the table at the same time, because I have to change the definition of fields frequently as needed. It's something like the Database Desktop of old Delphi. And TClientDataSet provides that function, AFAIK. ---------------------------------------------------------------------- wp · 2020-12-11 11:15 Quote from: egsuh on December 10, 2020, 06:38:52 amHope a menu item of "CreateDataset" is added to popup menu of TBufDataSet icon. It is, in FPC trunk. ---------------------------------------------------------------------- lucamar · 2020-12-11 11:20 @egsuh: You do know that Lazarus also has a Database Desktop, don't you? It's in {Lazarus folder}/tools/lazdatadesktop/ ---------------------------------------------------------------------- egsuh · 2020-12-12 03:29 QuoteIt is, in FPC trunk. Wow, they are great news!  @Lucamar: I didn't know that. Is there any way to add it in the Lazarus IDE menu, like as a submenu of Tools? ---------------------------------------------------------------------- wp · 2020-12-12 10:02 Quote from: egsuh on December 12, 2020, 04:29:14 amIs there any way to add it in the Lazarus IDE menu, like as a submenu of Tools? You can add any external program to the Tools menu by using "Tools" > "Configure External Tools"