Public Function RemoveHead( _ Optional ByRef rValue As Variant _ ) As Boolean
Assuming Dim dqTemp As New Deque dqTemp.AddHead 12 dqTemp.AddHead "Sam" Dim varTemp As Variant Dim bResult As Boolean for example bResult = dqTemp.RemoveHead(varTemp) leaves bResult = True varTemp = "Sam" and bResult = dqTemp.RemoveHead(varTemp) leaves bResult = True varTemp = 12Example #2:
Assuming Dim dqTemp As New Deque dqTemp.AddTail 12 dqTemp.AddTail "Sam" Dim varTemp As Variant Dim bResult As Boolean for example bResult = dqTemp.RemoveHead(varTemp) leaves bResult = True varTemp = 12 and bResult = dqTemp.RemoveHead(varTemp) leaves bResult = True varTemp = "Sam"See also:
RemoveTail Function RemoveAll Subroutine Head Property AddHead Subroutine QueueRemove Function StackPop FunctionrValue: Value at the head of the Deque is assigned into variable rValue. rValue must be compatible with the value that is being retrieved from the Deque. rValue is optional and can be omitted in order to remove the value from the Deque without returning the value.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.