> Can someone tell me why the following is illegal? I guess I am just getting
> tired of writing one line Set_XXX and Get_XXX property access specifiers
> that do something like SomeComponent.SomeProperty := PassedInValue
>
> property SomeProperty : TCaption read SomeComponent.Caption write
> SomeComponent.Caption
Simply because they are defined this way... If both properties were on the same
object it would be possible for a little compiler tweaking to allow mapping the
read and write specifiers from one property to another... but for properties on another
object there is the issue of instance pointers being stored also... Remember a class
definition is not the same as an instanciation...
--
Aaron@home
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz