WorkSpaceY

Description

Obtains the distance between the top of a window’s workspace and the top of the screen.

Applies to

Window objects

Syntax

windowname.WorkSpaceY ( )

Argument

Description

windowname

The name of the window for which you want the distance between the top of the workspace area and the top of the screen

Returns

Integer. Returns the distance that the top of the workspace area of windowname is from the top of the screen (in PowerBuilder units). If an error occurs, WorkSpaceY returns -1. If windowname is null, WorkSpaceY returns null.

Usage

The workspace area is the area between the sides of the window (not including the thickness of the frame or the vertical scrollbar, if any) and the top and bottom of the window (not including the thickness of the frame or the title bar, menu bar, or horizontal scrollbar, if any).

Examples

Example 1

This example returns the distance from the top of the screen to the top of the workspace area in the w_employee window:

integer worky

worky = w_employee.WorkSpaceY()

See also