Pops (removes) a value from the given shift register at last position
Lists.au3 _ShiftPop( $aShift ) |
$aShift | Shift register array as handle |
value | Value popped from shift register |
1 | Not a shift register |
2 | Shift register is empty, no values |
_ShiftPush, _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)