Sets the pointer at the specified index to have an owning or non-owning relationship with the specified object. Note that multiple ownership is not supported and this call fails if the collection already stores an owning pointer to the object. Care is required because this <TypeBuffer> does not know if another <TypeBuffer> already has an owning pointer to this object.
int32 Set( int32 p_nIndex, int32 p_bOwns, Type p_oObject )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nIndex | The index at which to set the object pointer. |
int32 | p_bOwns | Determines whether or not the collection should own the pointer. |
<Type> | p_oObject | A pointer to the object. |
None published. Please look for an example in the Scenome Scripting Language code base.