ClassSystem.Collections.Stack (standard version) System.Collections.Generic.Stack (generic version) SyntaxDim result As Object = stackVariable.Pop( ) DescriptionThe Pop method removes the top item from the stack and returns it as an Object. Usage at a GlancePop generates an error if applied to an empty stack. Use the Count property to check for items on the stack. Version DifferencesVisual Basic 2005 adds support for generics to stacks, as discussed in Chapter 10. See AlsoStack Class, Stack.Peek Method |