dmitrybv 3 Posted April 6 Class alias for class helper doesn't make class helper visible for compiler. Is it possible to declare class alias for class helper with making class helper visible for compiler? Example Unit1 TControlHelper = class helper for TControl function RefSelf: TControl; end; Unit2 TControlHelper = Unit1.TControlHelper; Unit3 uses Unit2; ... var MyControl: TControl; MyControl.RefSelf //Compiler error. Share this post Link to post
Wak 1 Posted April 6 The helper is not in the scope because Unit1 is not in the Uses list. Share this post Link to post
HeartWare 6 Posted May 19 (edited) Have you tried unit Unit2; interface uses Unit1; type TControlHelper = class helper(Unit1.TControlHelper) for TControl end; implementation end. (Haven't tried myself, but logically, I think it would work) Edited May 19 by HeartWare Fleshed out 1 Share this post Link to post