use units lazarus / 9-Editor ---------------------------------------------------------------------- kao · 2006-07-25 04:11 Hello, in delphi there was an option named, "use unit" in wich automatically you could add a unit to another so you can make references to their components. I can add the unit in the code editor but the component just don´t appear in the object inspector.    An example is, i want to set the datasource of a dbgrid in my form using a datasource in a datamodule. What can i do?? Sorry about my poor english Thank you ---------------------------------------------------------------------- kao · 2006-07-26 03:54 Did I miss something?, I really hope somebody can help me!! thanx ---------------------------------------------------------------------- CCRDude · 2006-07-26 05:37 Code: [Select]Unit ThisIsMyFirstUnit; interface uses ThisIsMyOtherUnit; implementation uses ThisIsYetAnotherUnit; end. Units never appear i the Object Inspector. Why should they? It's for objects, not units. And the Code Explorer always shows the unit of the active tab. I also don't quite understand the example... wait... You're speaking about a form unit of a different form, and want to set unit1.dbgrid.datasource := unit2.datasource or something like that? I've no idea if Lazarus supports this, have you tried to type it in manually? ---------------------------------------------------------------------- Marc · 2006-07-26 09:40 The object inspector can't show components on other forms/datamodules yet. If you want this, you need to do it manually in the Form.Create