Range

Description

The rows in the DataWindow used in the graph or OLE Object control. Range can be all rows, the rows on the current page, a group that you have defined for the DataWindow, or the current row (OLE Object controls only).

Applies to

Graph and OLE Object controls

Syntax

PowerBuilder dot notation:

dw_control.Object.controlname.Range

Describe argument:

"controlname.Range"

Parameter

Description

controlname

The name of the graph control within the DataWindow that will display the graphed rows or the name of the OLE Object control that holds an OLE object to which the specified range of rows will be transferred.


Usage

Possible values are:

-2 -- The current row (OLE Object controls only)

-1 -- The rows on a single page in the DataWindow object

0 -- All the rows in the DataWindow object

n -- The number of a group level in the DataWindow object

GroupBy and Target also affect the data that is transferred to the OLE object.

In the painter

Select the control and set the value in the Properties view, Data tab, Rows option.

Examples

string strRange
strRange = dw1.Object.graph_salary.Range
strRange = dw1.Object.ole_report.Range
strRange = dw1.Describe("graph_salary.Range")
strRange = dw1.Describe("ole_report.Range")