Sub Stack Class

Push

Push a new value onto the top of the stack.

Signature (Visual Basic / VBA)

Public Sub Push( _
    ByVal vValue As Variant _
    )

Code Example

    Assuming
       stkTemp.StringView() = "(Top) 333, 22, 1 (Bottom)"
    for example
       stkTemp.Push 4444
    leaves
       stkTemp.StringView() = "(Top) 4444, 333, 22, 1 (Bottom)"

Parameters

Parameter Description
vValue Value that will be added to the top of the stack. vValue can be any type of Variant value (vbString, numeric, vbDate, vbObject, vbArray, etc.).

Notes & Version History

v1.3 BugFix This Subroutine has been fixed to support the storage of Object and DataObject type Values.