problem: not finding reference to components lazarus / 21-General ---------------------------------------------------------------------- rcmz · 2023-04-30 20:39 Hi, I have an app with several units I put frxDBDataset and frxReport in a DataModule so the other units can use this components I use this option until in one unit I got the error that the frxDBDataset and frxReport identifier not found. So I started to put the components in the unit in question and the other units that did not have the problem I left as is. Yesterday when I created a new unit and added the components frx's I got the error: identifier not found. After almost giving up, I tried connecting to the datamodule and use the component's in the DM and it worked. But if I put the frx component in the unit it does not work. Any idea? TIA Ramiro using: Lazarus 2.2, frx fastreport 6 ---------------------------------------------------------------------- jamie · 2023-04-30 20:47 Shot in the dark. Looks like a long name, are you ensuring you have {$mode objfpc}{$H+} at the top of the new UNITS? ---------------------------------------------------------------------- TRon · 2023-04-30 20:48 Assuming you filled all required properties in/with the visual designer the first thing that comes to mind is that whenever you point your components to the database you have used the name of the datamodule to access the DB components. Ergo the unit name of the datamodule is in front of the actual name of the component (separated by a dot). ---------------------------------------------------------------------- rcmz · 2023-05-01 20:08 hi, jamie: yes all my units have {$mode objfpc}-{$H+} at the top. TRon: Yes all that is ok. The problems is some times the new units do not find the reference of the components in the datamodule. The new problem was that my work arround to put the components on the units that use frxReports showed the same but this time is direct the the unit corresponding the the frxReports. I send an email the the support team at Fast-Reports and told me to reinstall lazarus and fastreports, I told them that the error is random, and I will send them a sample project. TIA Ramiro. ---------------------------------------------------------------------- jamie · 2023-05-01 21:51 is it listed in your "Project Inspector" ? If not you should add it there as needed for your project, the Package. ---------------------------------------------------------------------- rcmz · 2023-05-02 04:46 Thx for your reply. Yes it is listed that is the strange part of this error. TIA Ramiro