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

Stack class in LotusScript

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


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

Dim stack As New Stack()
Call stack.push("Domino")
Call stack.push("Notes")
Call stack.push("R5")

Print "Stack is: " & stack.toString()

Print "First: " & stack.pop()
Print "Second: " & stack.pop()
Print "Third: " & stack.pop()
The toString() method now checks that there is items in the stack before looping through them. Thanks for the bug report, Chad!

Floppy icon Stack.ls3 Kb