Posted on 1999-10-25
I'am basically trying to write a component
with the instance of another component in its
private access. Let me brief things...
property State : TState read Mstate write Mstate
This is my first component..
In the second component I have the same
TState property to be used and in my second
component if i set the State...it should
set the MyComponents state...This is my
So in the second component declared the
TState and also created the property enhanced
state(property). The problem i face is that
if i tried to set the property of MyComponent's
state from the second component it says
Mycomponent.state and Secondcomponent.state
is incompatible? So cooly i created an unit
that contains all the type declarations and
used in both units...It worked cool? I know
this question is trivial... But please
explain me how to solve this problem without
using the unit stuff..
Also I'am looking for a cool component tutorial
or any book that deals with in and out of
Please help me out
Thanks in advance....