Units

Description

The unit of measure used to specify measurements in the DataWindow object. You set this in the DataWindow Style dialog box when you define the DataWindow object.

Applies to

DataWindows

Syntax

PowerBuilder dot notation:

dw_control.Object.DataWindow.Units

Describe argument:

"DataWindow.Units"

SyntaxFromSql:

DataWindow ( Units = value )

Parameter

Description

value

The type of units for measurements in the DataWindow.

Values are:

0 -- PowerBuilder units

1 -- Display pixels

2 -- 1/1000 of a logical inch

3 -- 1/1000 of a logical centimeter


Usage

PowerBuilder units and display pixels are adjusted for printing.

In the painter

Select the DataWindow by deselecting all controls; then set the value in the Properties view, General tab, Units option.

Examples

string setting
setting = dw1.Object.DataWindow.Units
setting = dw1.Describe("DataWindow.Units")