Syntax for
a single data item in a DataWindow
Description
A DataWindow data expression accesses a single data item when you
specify its row and column number.
Syntax
1 |
dwcontrol.Object.Data {.buffer } {.datasource } [ rownum, colnum ] |
Parameter |
Description |
---|---|
dwcontrol |
The name of the DataWindow control or child |
buffer (optional) |
The name of the buffer from which you want to get
|
datasource (optional) |
The source of the data. Values
|
rownum |
The row number of the desired item. |
colnum |
The column number of the desired The row and column numbers must be enclosed in |
Return value
The datatype of the expression is Any. The expression returns a
single item in the DataWindow control. Its datatype is the datatype of
the column.
Examples
These expressions both refer to a single item in row 1, column 2.
The expressions access current data in the primary buffer:
1 2 |
dw_1.Object.Data[1,2] dw_1.Object.Data.Primary.Current[1,2] |
This statement changes the value of the original data to 0 for the
item in row 1, column 2 in the Filter buffer. Column 2 holds numeric
data:
1 |
dw_1.Object.Data.Filter.Original[1,2] = 0 |