Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>wprev() window function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WPREV()                                                    Window Function
 Purpose..: Return the ID of the window before the one named
-------------------------------------------------------------------------------
 Syntax...: wPrev( [<uWin>] ) --> cPrvWinID

 Arguments: [<uWin>] = the string identifier of the window
                       OR the reference to the window structure
                       returned as an array by wNew() or wArray().
                       If not passed, the function will operate on
                       the window in focus.

 Returns..: <C> The name of the window before the one named.
            If there is no window before that specified, the last
            window in the stack is returned. This behaviour
            is similar to SET WRAP ON.

 Source...: WPREV.PRG
-------------------------------------------------------------------------------
 Example..: The example example will print "Three" and "Four".

                 wNew( "One" )
                 wNew( "Two" )
                 wNew( "Three" )
                 wNew( "Four" )

                 ? wPrev( "Four" )  // Prints "Three"
                 ? wPrev( "One"  )  // Prints "Four"

See Also: wNext() wHead() wTail()

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