Clone (powerobject original, powerobject clone ) return integer - Syntax 2

The purpose of the Clone method is to make a copy of any original class into another cloned one.
If the clone object does not exists it will be automatically instantiated using the adequate object"s type based on the one of the original object.

It replace the usual code based on instantiation and properties copy techniques by a more concise
and readable code :

...
str_wintype lstr_original
str_wintype lstr_copy
...
if #.Clone( lstr_original, lstr_copy ) = -1 then return -1
...

Last edited Aug 25, 2015 at 3:33 PM by domangep, version 4