dev.kanngard.net make sure you visit my new blog at: johankanngard.net

Queue class in LotusScript

by Johan Känngård / [LotusScript] / 2002-05-06 / #54


Another class to use at your own risk. Can be used like:

Dim queue As New Queue()
Call queue.insert("Domino")
Call queue.insert("Notes")
Call queue.insert("R5")

Print "Queue is: " & queue.toString()

Dim tmp As String
Do While Not queue.isEmpty()
	If Isobject(queue.getFront()) Then
		tmp = queue.remove().toString()
	Else
		tmp = queue.remove()
	End If
	Print "Element is: " & tmp
Loop


Floppy icon Queue.ls3 Kb