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

Is Empty Property
Deque Class

Public Property Get IsEmpty( _
    ) As Boolean

Return True if the Deque is empty.
Return False if the Deque contains one or more items.

Example #1:
    Assuming
       Dim dqTemp As New Deque
       dqTemp.AddTail "Sam"
    for example
       dqTemp.IsEmpty = False
Example #2:
    Dim dqTemp As New Deque
    ' Fill
    Dim intCount As Integer
    For intCount = 1 To 5
       dqTemp.AddHead intCount
    Next intCount
    ' Remove
    Dim varValue As Variant
    Do Until dqTemp.IsEmpty
        Debug.Print dqTemp.RemoveTail(varValue)
        Debug.Print varValue
    Loop
See also:
    Count Property
Return value: Property returns True if the Deque is currently empty, and it returns False if the Deque contains one or more items.

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