Insert Data Member Function

Inserts an object into the collection and sets an owning or non-owning relationship. This function can require a full allocation and deallocation cycle. Note that the collection does not support multiple ownership, so this function fails if you try to create an additional owning relationship to an object the collection already owns.

Prototype

int32 Insert( int32 p_nIndex, int32 p_bOwns, Type p_oObject )

Parameters

Parameter Type Parameter Name Documentation
int32p_nIndexThe index at which to insert the object pointer.
int32p_bOwnsIf true, the collection owns the object. Otherwise, the collection does not own the object.
<Type>p_oObjectThe object to insert.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.