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.
int32 Insert( int32 p_nIndex, int32 p_bOwns, Type p_oObject )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nIndex | The index at which to insert the object pointer. |
int32 | p_bOwns | If true, the collection owns the object. Otherwise, the collection does not own the object. |
<Type> | p_oObject | The object to insert. |
None published. Please look for an example in the Scenome Scripting Language code base.