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

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

Example 1

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