WINDOW statement  

Purpose

Manipulate a Window in the program, which may include setting or retrieving data.  The target window may be of any class, including a Control or Dialog.

Syntax

WINDOW GET ID hWin TO datav&
WINDOW GET PARENT hWin TO datav&

hWin

Handle of the Window to be used.

datav&

A long integer variable to which result data is assigned.

Remarks

The WINDOW statement may be used with any type of window in your program, including a Control or Dialog.  Generally speaking, the window to be manipulated or tested is identified by its handle (hWin), which is often obtained at the time it is created.  However, since a control is usually accessed by a "Parent / ID" combination, you must use CONTROL HANDLE to retrieve its handle for this purpose.

WINDOW GET ID hWin TO datav&

The integer ID of the window hWin is retrieved and assigned to the variable designated by datav&.  Generally, only a CONTROL will have an ID, so windows of other classes will normally return the value zero.

WINDOW GET PARENT hWin TO datav&

The handle of the PARENT is retrieved and assigned to the variable designated by datav&.

See also

CONTROL HANDLE