[fpc-pascal] Clone a instance of object
Zaher Dirkey
parmaja at gmail.com
Mon Sep 23 11:42:02 CEST 2013
On Mon, Sep 23, 2013 at 10:02 AM, Michael Van Canneyt <
michael at freepascal.org> wrote:
> Var
> C : TBaseObjectClass;
> begin
> C:=TBaseObjectClass(ClassType)**;
> Result:=C.Create;
> end;
>
Yes, that help me, thanks.
Now about assigning I must repeat it (assign) for every child class copy
its field members, is there any trick to copy the values like assigning
record var to another record var?
I know it is kind of strange way :P
Thanks
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130923/139b3950/attachment.html>
More information about the fpc-pascal
mailing list