function GetControlOf(var _a:TPersistent):TControl;
where _a is either a property or a sub-property ?
DH
No
--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com
> Is there something like :
>
> function GetControlOf(var _a:TPersistent):TControl;
>
> where _a is either a property or a sub-property ?
No. TPersistent does not have any link available to the containing control,
if there is even such a control used in the first place. So there is no way
for the RTL to implement such a function. Individual TPersistent
descendant classes must manually expose their own properties for that kind
of link.
Gambit
DH