Click or drag to resize

WVISIBLE Function (String)

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

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.24 GA
Syntax
 FUNCTION WVISIBLE(
	windowName AS STRING
) AS LOGIC
Request Example View Source

Parameters

windowName
Type: String

Return Value

Type: Logic
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.
Examples
X#
1ACTIVATE WINDOW View
2? WVISIBLE( "View" ) // return .T.
3DEACTIVATE WINDOW View
4? WVISIBLE( "View" ) // return .F.
See Also