| **Navigation:**  [[advanced topics 1.htm|Advanced Topics]] > Clarion Language Utilities >====== WindowExists (Validate Window Existence) ====== | [[validateole validate ole control creation.htm|{{btn_prev_n.gif|Previous page}}]][[advanced topics 1.htm|{{btn_home_n.gif|Return to chapter overview}}]][[clarion 7 build system.htm|{{btn_next_n.gif|Next page}}]] | | || **WINDOWEXISTS(**//windowtitle// **)** {{blk2blue.jpg|blk2blue.jpg}} | **WINDOWEXISTS** | Verify that a WINDOW structure is active | | //windowtitle// | A string constant or variable that specifies the window name (the window's title). | **WINDOWEXISTS** is used to verify that a valid window exists whose window name matches the window title. If **WINDOWEXISTS** succeeds (has a valid handle), the return value is TRUE (1). If it fails, the return value is FALSE (0). To add support for this utility to your existing applications, you need only include the CWUTIL.INC file in the Global Map section of your program: **INCLUDE('CWUTIL.INC'),ONCE** **Return Data Type:**     BYTE **Example:** **GLO:IsMenuActive = WINDOWEXISTS('Utility Menu') !is the utility window active?**