Insert

Description

Target Array Insert  goes to the index you specified and inserts the value given, all elements in the array after the inserted index are moved down one.

Syntax

trg.array.Insert index, value

index (input) - The index at which you want to insert a value

value (input) - The value which you want to insert into the array

Return value

This function does not return a value

Sample

'---------- Start ----------

Function Start


trg.array.Add( 66 ) 

trg.array.Add( 77 )

trg.array.Add( 11 )

trg.array.Insert 2, 8


End Function

See also

Platform Objects and Methods

target.array.GetArray

target.array.Join

target.array