JavaScript Editor js editor     Web development 



Main Page

Returns the column coordinate of the upper-left corner of the active or specified window.

WLCOL([WindowName])

Parameters

WindowName


Specifies the window for which WLCOL(В ) returns the column coordinate. In Visual FoxPro, you can also specify the name of a toolbar. If you omit WindowName, WLCOLS(В ) returns the column coordinate of the active output window. You can also use the empty string for WindowName to specify the main Visual FoxPro window. In Visual FoxPro, if no window is active, WLCOLS(В ) returns the column coordinate of the main Visual FoxPro window relative to the Windows desktop. If a system window (the Command window, the Data Session window, a Browse window, and so on) has been opened and is visible or hidden (its name appears on the Window menu), you can include its name in WLCOL(В ). If you specify the name of a system window that is closed, Visual FoxPro generates an error message. The Debug window is an exception. Once the Debug window has been opened, its name can be included in WLCOL(В ) if it is visible, hidden, or closed.

Return Value

Numeric

Remarks

The value returned by WLCOL(В ) depends on the current video display mode, and is relative to the main Visual FoxPro window. The display mode can be changed with SET DISPLAY.

Windows can be positioned outside the main Visual FoxPro window. If the specified window is to the left of the main Visual FoxPro window, WCOL(В ) returns a negative value. If the window's left border is to the right of the main Visual FoxPro window, WCOL(В ) returns a positive value greater than the width of the main Visual FoxPro window.

See Also



JavaScript Editor js editor     Web development