Relocate Data Member Function

Relocates a chunk of the array to a new index.

Prototype

int32 Relocate( int32 p_nStart, int32 p_nCount, int32 p_nNewIndex )

Parameters

Parameter Type Parameter Name Documentation
int32p_nStartThe start index of the chunk you wish to move.
int32p_nCountThe number of items to move. If you move from index 0 with count 5, then you are moving five items.
int32p_nNewIndexThe index to which you wish to move the chunk. The index cannot be inside the chunk you are relocating. For example, if you provide index 0 and a count of 5, you cannot relocate the chunk to index 0, 1, 2, 3, or

Examples

Copy Text To Clipboard

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