Set Data Member Function

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.

Prototype

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

Parameters

Parameter Type Parameter Name Documentation
int32p_nIndexThe index at which to set the object pointer.
int32p_bOwnsDetermines whether or not the collection should own the pointer.
<Type>p_oObjectA pointer to the object.

Examples

Copy Text To Clipboard

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