Property Stack Class

Count

Returns the number of items in the Stack .

Signature (Visual Basic / VBA)

Public Property Get Count( _
    ) As Long

Code Example

    Assuming
       Dim stkTemp As New Stack
       stkTemp.Push 12
    for example
       stkTemp.Count = 1

Return Value

Property returns the number of items currently stored in the Stack .