Links are not active on this page.
 WVISIBLE( ) Function

Determines if the specified window has been activated and isn't hidden.

WVISIBLE(WindowName)

Parameters

WindowName

Specifies the name of the window WVISIBLE( ) evaluates. In Visual FoxPro, you can also specify the name of a toolbar. You can also include the empty string in WindowName to specify the main Visual FoxPro window.

Expand imageReturn Value

Logical

Expand imageRemarks

WVISIBLE( ) returns true (.T.) if the specified window is shown or activated and isn't hidden. Windows are shown and activated with SHOW WINDOW and ACTIVATE WINDOW.

WVISIBLE( ) returns false (.F.) if the window has not been activated, has been hidden with HIDE WINDOW, has been deactivated with DEACTIVATE WINDOW, or doesn't exist.

Expand imageExample

The follow example activates the Data Session window (represented by the name View). Using the WVISIBLE() function, you can print to screen the visible state of the window. The Deactivate window is used to close the Data Session window, and the WVISIBLE() function is used again to print the visible state of the window.

 CopyCode imageCopy Code
ACTIVATE WINDOW View
? WVISIBLE( "View" ) && return .T.
DEACTIVATE WINDOW View
? WVISIBLE( "View" ) && return .F. 

Expand imageSee Also