Loading...
 

CopyTransObject

CopyTransObject

CopyTransObject(mode), CopyTransObject

Parameter: Integer value for copy mode

Stack
Stack Description
Stack(In) one object
Stack(Out) a transient copy of this object

This statement creates a transient object, which is a copy of the persistent or transient object found on the stack. (See also the InstantView® command CopyPersObject, which creates a persistent copy of an object).

How an object is copied is determined by the class of the object (a detailed description can be found here).

Attention: Transient pointers to persistent objects may occur during transient copying of persistent objects. These are only valid until the end of the transaction and show undefined behaviour afterwards. With CopyTransObject you have to check exactly which parts of the object are copied.

Note: In the current ClassiX version, the mode parameter is only considered for CopyPersObject .