Access/VBA Library

Stack

Class which defines the Stack abstract datatype.

Module: Stack
Example
  Dim s As New Stack

  With s
    .Push "First element"
    .Push "Second element"
    .Push "Third element"

    While Not .IsEmpty
      Debug.Print .Pop()
    Wend
  End With
  'Result:
  'Third element
  'Second Element
  'First Element

Topics