X1, X2  Y1, Y2

Chapter 3: DataWindow Object Properties

Y

Description

The distance of the specified control from the top of the control’s band.

Applies to

Button, Column, Computed Field, Graph, GroupBox, Oval, Picture, Rectangle, Report, RoundRectangle, TableBlob, and Text controls

Syntax

PocketBuilder dot notation:

dw_control.Object.controlname.Y

Describe and Modify argument:

"controlname.Y { = ' value ' }"

Parameter

Description

controlname

The name of the control for which you want to get or set the y coordinate.

value

(exp) An integer specifying the y coordinate of the control 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.emp_name.Y

Example 2

dw_1.Object.emp_name.Y = 100

Example 3

setting = dw_1.Describe("emp_name.Y")

Example 4

dw_1.Modify("emp_name.Y=100")





Copyright © 2004. Sybase Inc. All rights reserved. Y1, Y2

View this book as PDF