VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "clsQueue"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Private colData As Collection

Public Sub Class_Initialize()
    Set colData = New Collection
End Sub

Public Sub Clear()
    Set colData = New Collection
End Sub

Public Function Count() As Long
    Count = colData.Count
End Function

Public Sub Enqueue(value As Variant)
    colData.Add value
End Sub

Public Function Dequeue() As Variant
    Dequeue = colData.Item(1)
    colData.Remove 1
End Function

Public Function Peek() As Variant
    Peek = colData.Item(1)
End Function

Public Sub Class_Terminate()
    Set colData = Nothing
End Sub
