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 |
<span>dwcontrol</span>.Object.Data {.<span>buffer</span> } {.<span>datasource</span> } [<span> rownum</span>, <span>colnum </span>] |
|
Parameter |
Description |
|---|---|
|
dwcontrol |
The name of the DataWindow control or |
|
buffer |
The name of the buffer from which you
|
|
datasource |
The source of the data. Values are:
|
|
rownum |
The row number of the desired item. |
|
colnum |
The column number of the desired item. The row and column numbers must be enclosed in brackets and |
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 |
dw_1.Object.Data[1,2] |
|
1 |
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 |