Insert - Array

Member of: All Arrays

Inserts a new item to the array at the specified position, expanding it to fit.

SyntaxEdit

Function Insert(;/element type/; akElement, int aiLocation) native

ParametersEdit

  • akElement: The element to insert
  • aiLocation: The location to put the item into

Return ValueEdit

None

ExamplesEdit

; Insert "Hello" into the index 0 in the array
MyStringArray.Insert("Hello", 0)

; In this case, ["world"] would become ["Hello", "world"]

See AlsoEdit