Partager via


WVISIBLE( ) Function

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

WVISIBLE(WindowName)

Return Value

Logical

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.

Remarks

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.

Example

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.

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

See Also

Reference

ACTIVATE WINDOW Command

DEFINE WINDOW Command

WEXIST( ) Function

WONTOP( ) Function

WOUTPUT( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)