_ShiftPush

Pushes (adds) a value into the given shift register on first position

Lists.au3
_ShiftPush( $aShift [, $vValue = 0] )

parameters

$aShift Shift register array as handle
$vValue Value to push into shift register

return value

boolean value True = Value pushed, False = Not a shift register

related

_ShiftPop, _ShiftPeek, _ShiftGet, _ShiftValueInShift

example

Local $aMyShift = _ShiftCreate()
_ShiftPush( $aMyShift, "qwerty" ) ; into first position
_ShiftPush( $aMyShift, "abcde" ) ; into first position
....
If Not _ShiftIsEmpty( $aMyShift ) Then $Value = _ShiftPop( $aMyShift ) ; $Value = qwerty (last value)