unit visibility lazarus / 21-General ---------------------------------------------------------------------- Medhome · 2024-10-30 18:39 Hi all, Say we  have 3 units  : unit1, unit2, unit3. Do we have to  add unit1 in USES  of unit2 and unit3 even if tform in unit3 is inherited from tform of unit2 Regards Med ---------------------------------------------------------------------- TRon · 2024-10-30 18:44 The answer depends on whether or not both unit 2 and 3 requires something from unit1 and/or if unit1 requires something from unit2 and/or unit3. in short: impossible to provide a precise answer without more knowledge. ---------------------------------------------------------------------- Medhome · 2024-10-30 18:50 UNIT 2 AND 1 REQUIRES SOMETHING  FROM UNIT1  AND  UNIT3 AND 2 ARE RELATED  (INHERITED) MED ---------------------------------------------------------------------- TRon · 2024-10-30 19:04 Assuming that .. Quote from: Medhome on October 30, 2024, 07:50:21 pmUNIT 2 AND 1 REQUIRES SOMETHING  FROM UNIT1  AND  UNIT3 AND 2 ARE RELATED  (INHERITED) (no need to shout btw  ) was actually meant as Quoteunit 2 and 3 requires something from unit1 then ... Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i unit unit1;interfaceimplementationend.  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i unit unit2;interfaceuses  unit1;  // in case something from unit1 is needed in this units interface sectionimplementationuses  unit1; // in case something from unit1 is only needed in this units implementation sectionend.  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i unit unit3;interfaceuses  unit1,  // in case something from unit1 is needed in this units interface section  unit2;implementation  unit1,  // in case something from unit1 is only needed in this units implementation sectionend. .. so that the answer to your first question becomes positive. ---------------------------------------------------------------------- Medhome · 2024-10-30 19:12 Hi All, Question CLOSED. ---------------------------------------------------------------------- TRon · 2024-10-30 19:19 You can mark your question as being solved yourself (actually it is the only way), see also wiki Mark a thread as resolved ---------------------------------------------------------------------- Medhome · 2024-11-02 15:22 Quote from: Medhome on October 30, 2024, 07:39:58 pmHi all, Say we  have 3 units  : unit1, unit2, unit3. Do we have to  add unit1 in USES  of unit2 and unit3 even if tform in unit3 is inherited from tform of unit2 Regards Med ---------------------------------------------------------------------- dsiders · 2024-11-02 15:48 Quote from: Medhome on November 02, 2024, 04:22:42 pmQuote from: Medhome on October 30, 2024, 07:39:58 pmHi all, Say we  have 3 units  : unit1, unit2, unit3. Do we have to  add unit1 in USES  of unit2 and unit3 even if tform in unit3 is inherited from tform of unit2 Regards Med Add "[Solved]" to the first post instead.