X  Y

Chapter 3: DataWindow Object Properties

X1, X2

Description

The distance of each end of the specified line from the left edge of the line’s band.

Applies to

Line controls

Syntax

PocketBuilder dot notation:

	dw_control.Object.controlname.X1
	dw_control.Object.controlname.X2

Describe and Modify argument:

	"controlname.X1 { = ' value ' }"
	"controlname.X2 { = ' value ' }"

Parameter

Description

controlname

The name of the line for which you want to get or set one of the x coordinates.

value

(exp) An integer specifying the x coordinate of the line in the unit of measure specified for the DataWindow object. Value can be a quoted DataWindow expression.

Usage


In the painter

Select the control and set the value in the Properties view, Position tab.

Examples

Example 1

string setting

setting = dw_1.Object.line_1.X1

Example 2

dw_1.Object.line_1.X1 = 10

dw_1.Object.line_1.X2 = 1000

Example 3

setting = dw_1.Describe("line_1.X1")

Example 4

dw_1.Modify("line_1.X1=10")

dw_1.Modify("line_1.X2=1000")





Copyright © 2004. Sybase Inc. All rights reserved. Y

View this book as PDF