Hi,
I am building from some time a OPF, that is working fine for me, but I´d
like to avoid the big amount of castings I am using...
I have one class on each unit.
Each class contains the properties that represent´s it :-)
One property kind is TLinkedObjectProperty. This class has a property
that returns a TObject, pointing to the object the property is
referencing...
TLinkedObjectProperty has another property called LinkedObjectClass that
has the class of the linked object.
Is there a way that, each time I reference (by code) ...
mylinkedproperty.obj ... this obj is taken by the compiler of its
linkedobjectclass class?
so, I can use... mylinkedproperty.obj.[prop] ... beeing [prop] any
property of the object that is of class LinkedObjectClass, and avoiding
to type TMyLinkeddObjectClass(mylinkedproperty.obj).[prop] ???
Sorry for my poor english and I hope you understand what I mean.
Thanks in advance
Horacio from Argentina.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal