Function Stack Class

Over

Duplicate the value that is second from (next to) the top of the stack. Function returns True upon success and False upon failure.

Signature (Visual Basic / VBA)

Public Function Over( _
    ) As Boolean

Code Example

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

Return Value

Function returns True upon success. Stack must contain at least two items otherwise this function does nothing and returns False.

Notes & Version History

Note Same as but faster than Pick (2)
v1.3 BugFix This Function has been fixed to support the Duplication of Object and DataObject type Values.