Link to home
Start Free TrialLog in
Avatar of asi
asi

asked on

Copy component properties

Hello,

Is there a general way to copy component properties (Only the published) from component A to B  (same type)
I  assume that not every component that descendent from TComponent have update assign procedure.

thank u
Asi
Avatar of robert_marquardt
robert_marquardt

Yes it is possible. This trick is often used to implement Assign.
Component A writes itself to a TMemoryStream and component B reads itself from that same stream.
Have a look at TWriter.WriteComponent in the help for a starter.
ASKER CERTIFIED SOLUTION
Avatar of alx512
alx512
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial