WorkSpaceHeight

Description

Obtains the height of the workspace within the boundaries of the specified window.

Applies to

Window objects

Syntax

windowname.WorkSpaceHeight ( )

Argument

Description

windowname

The name of the window for which you want the height of the workspace area

Returns

Integer. Returns the height of the workspace area in PowerBuilder units in windowname. If an error occurs, WorkSpaceHeight returns -1. If windowname is null, WorkSpaceHeight returns null.

Usage

The workspace height does not include the thickness of the frame, the title bar, menu bar, horizontal scrollbar, or any toolbars at the top or bottom.

The workspace width does not include the thickness of the frame, the vertical scrollbar, or any toolbars on the left or right.

Examples

Example 1

This example returns the height of the workspace area in the w_employee window:

Integer Height

Height = W_employee.WorkSpaceHeight()

See also