<-- Previous || Up || Next -->

Over Function
Stack Class

Public Function Over( _
    ) As Boolean

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

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)"
See also:
    Duplicate Function
    Pick Function
    Push Subroutine
Return value: Function returns True upon success. Stack must contain at least two items otherwise this function does nothing and returns False.
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.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.