Creates a shift register (FIFO) for pushing and popping values
Lists.au3 _ShiftCreate() |
none |
array value | Shift register array as handle |
_ShiftIsShift, _ShiftToArray, _ArrayToShift
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)