Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>wnum()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WNUM()
 Determines the highest window handle
------------------------------------------------------------------------------
 Syntax

     WNUM() --> nHighestWindow

 Returns

     WNUM() determines the highest open window number (handle) so that you
     can iterate a loop over the range of open windows (see Winstore.prg in
     the samples directory).  Remember that any number of handles, from 0 to
     the highest handle number, can be inactive.

 Example

     Open three windows, and then close the second window.  WNUM() returns
     the highest window number, but there are two inactive handles:

     nW1  :=  WOPEN(3, 3, 10, 12)
     nW2  :=  WOPEN(10, 10, 20, 70)
     nW3  :=  WOPEN(5, 5, 22, 60)
     WSELECT(nW2)
     WCLOSE()
     ? WNUM()            // Result corresponds to nW3


See Also: WSELECT()

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