<-- Previous || Up || Next -->

Add Head Sub
Deque Class

Public Sub AddHead( _
    ByVal vValue As Variant _
    )

Inserts a value at the head of the deque.
Pushes a value onto a stack when the deque is being used as a stack.

Example:
    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 = 12
See also:
    AddHeadMulti Subroutine
    AddTail Subroutine
    RemoveHead Function
    StackPush Subroutine
vValue: 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.).
v1.3 BugFix: This Subroutine has been fixed to support the storage of Object and DataObject type Values.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.