Pushes (adds) a value into the given shift register on first position
Lists.au3 _ShiftPush( $aShift [, $vValue = 0] ) |
$aShift | Shift register array as handle |
$vValue | Value to push into shift register |
boolean value | True = Value pushed, False = Not a shift register |
_ShiftPop, _ShiftPeek, _ShiftGet, _ShiftValueInShift
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)