Public Sub AddHead( _
ByVal vValue As Variant _
) Assuming
Dim dqTemp As New Deque
for example
dqTemp.AddHead 12
dqTemp.AddHead "Sam"
Dim varOne As Variant
Dim varTwo As Variant
dqTemp.RemoveHead varOne
dqTemp.RemoveHead varTwo
leaves
varOne = "Sam"
varTwo = 12See also: AddHeadMulti Subroutine
AddTail Subroutine
RemoveHead Function
StackPush SubroutinevValue: Value that will be inserted into the deque at its head. vValue can be any type of Variant value (vbString, numeric, vbDate, vbObject, vbArray, etc.). Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.