Add new values without increasing array size by inserting at the end the new value and deleting the first one or vice versa
#include <Array.au3>
_ArrayPush ( ByRef $aArray, $vValue [, $iDirection = 0] )
This function is used for continuous updates of data in array, where in other cases a vast size of array would be created.
It keeps all values inside the array (something like History), minus the first one or the last one depending on direction chosen.
It is similar to the push command in assembly.
_ArrayAdd, _ArrayConcatenate, _ArrayDelete, _ArrayInsert, _ArrayPop
#include <Array.au3>
Local $avArrayTarget[9]= [1,2,3,4,5,6,7,8,9]
Local $avArraySource[2]= [100,200]
_ArrayDisplay ($avArrayTarget,"$avArrayTarget BEFORE _ArrayPush()")
_ArrayPush ($avArrayTarget,$avArraySource)
_ArrayDisplay ($avArrayTarget,"$avArrayTarget AFTER _ArrayPush() array to end")
_ArrayPush ($avArrayTarget,$avArraySource,1)
_ArrayDisplay ($avArrayTarget,"$avArrayTarget AFTER _ArrayPush() array to beginning")
_ArrayPush ($avArrayTarget,"Hello world!",1)
_ArrayDisplay ($avArrayTarget,"$avArrayTarget AFTER _ArrayPush() string to beginning")