Insert - Array

From Creation Kit
Jump to: navigation, search

Member of: All Arrays

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

Syntax

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

Parameters

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

Return Value

None

Examples

; Insert "Hello" into the index 0 in the array
MyStringArray.Insert("Hello", 0)
 
; In this case, ["world"] would become ["Hello", "world"]

See Also