[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|             WEXIST              |
+---------------------------------+
WEXIST(<window name>)

-----------------------------------
Returns true if specified window has been defined.
Return value - Logical
-----------------------------------

This function returns true if the specified window exists.  If the
window does not exist, WEXIST() returns false.  The specified window
does not have to be active or visible for WEXIST() to return true; it
must just be defined.  You may create user-defined windows with DEFINE
WINDOW.

<window name>
        Specify a <window name> in WEXIST().

        You may include the names of system windows (the Command window, the
View window, ASCII Chart, a Browse window ... ) in WEXIST().  If the
system window you specify is visible or hidden (its name appears in the
Window menu), WEXIST() returns true (.T.).  If the specified system
window is closed, WEXIST() returns false (.F.).

        Two exceptions are the Command and Debug windows.  Including the
Command window's name always returns a true value.  If the Debug window
has been opened, WEXIST() always returns true, even if the Debug window
is closed.

+---------------------------------+
|             Examples            |
+---------------------------------+
DEFINE WINDOW screen1 FROM 10,10 TO 20,69
DEFINE WINDOW screen2 FROM 1,0 TO 19,79
? WEXIST('screen1')

STORE 'screen2' TO win_name
? WEXIST(win_name)

? WEXIST('screen3')

-----------------------------------

See Also:  ACTIVATE WINDOW, DEFINE WINDOW, WLAST(), WONTOP(), WOUTPUT(),
WVISIBLE()

-----------------------------------

See Also: ACTIVATE WINDOW DEFINE WINDOW WLAST() WONTOP() WOUTPUT()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson