JavaScript Editor js editor     Web development 



Main Page

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.

Return Value

Logical

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.

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

See Also



JavaScript Editor js editor     Web development