Replace all instances of a class with another class? lazarus / 13-General ---------------------------------------------------------------------- tatamata · 2009-10-07 07:47 Hi. I have created a component that is basically TMemDataSet, but is decendant of TBufDataSet, not TDataSet, so Icalled it TMemBufDataSet. Now, I have  a project with many memdatsets placed on a form. I wish to change all of these TMemDataSets to become TMemBufDataSets. I tried with Replace and it did replace all TMemDataSet with TMemBufDataSet in code, but in object inspector, all instances are still TMemDataSet and I can't compile... What is the easiest way to instantly make all memdatasets to become membufdatasets? Thanks. ---------------------------------------------------------------------- Vincent Snijders · 2009-10-07 07:56 You can right click on the component in the designer and choose Change Class. Unfortunately, this does not work with mulitselect. ---------------------------------------------------------------------- theo · 2009-10-07 08:29 You could right click on the form then "View Source (.lfm)" and search-replace in this file too. Be careful! ---------------------------------------------------------------------- tatamata · 2009-10-07 09:04 OK. I did it. Thanks.