Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Fast Library For Clipper 3.02 Reference - <b>stackpop()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    StackPop()

         Removes a stack element

    Syntax:

         StackPop( aStack ) -> xOldHead

         aStack : The stack created with StackNew()

    Description:

         Removes a stack element and returns this elements value. The
         stack head comes to be the previously returned.

    Return:

         The older stack head value.

    Example:

         aStack  := StackNew ()
         StackPush ( aStack, "hello world" )
         StackPush ( aStack, "Bye bye" )
         ? StackPop ( aStack )           // "Bye bye"
         ? StackHead( aStack )           // "hello world"

See Also: StackHead() StackNew() StackPush() StackEmpty()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson