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>class tstack</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    Class TStack

        Exported Instances:

        Exported Methods:

           Init()                 Constructor Method

           Push( cValue )         Adds an element into the stack

               cValue : value to add into the stack

           Pop()                  Extracts an element

           Len()                  Returns the lenght of the stack

           Empty()                Determines if the stack is empty

           Tail()                 Returns the highest element


        Function Demo()
        Local oStack := TStack():Init()
            oStack:Push( "Hello" )
            oStack:Len()                // 1
            oStack:Empty()              // .F.
            oStack:Tail()               // "Hello"
            ? oStack:Pop()              // "Hello"
            oStack:Empty()              // .T.
            oStack:Len()                // 0
        Return( Nil )

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