GetCellValue - method of the PmaDataTable object
returns the value of the table cell.
Variant GetCellValue(Variant Row, Variant Col)
|Row||(Variant) Specifies the cell row in the table either by index (Long data type) or by the row identifikator (String data type, case sensitive text). |
If is >=0, then it is the row index (zero-based index).
If is -2, then it means the last row.
If is -3, then sets the value in all rows of the selected column.
Caution! Row identifier can be used only if the first column of the table is of the Identifier data type.
|Col||(Variant) Specifies the cell column in the table either by index (Long data type) or by the column identifikator (String data type, case sensitive text). |
If is >=0, then it is the column index (zero-based index).
If is -2, then it means the last column.
If is -3, then sets the value in all columns of the selected row.
The value of this property can be also obtained in the "PmaRoot" item of the INFO system (when looking into the object with this property). This property can be changed in the INFO system by clicking the "Actions" button. See "PmaRoot > Permissions > InfoEdit" permission.
Reading value from table cell from row on the index and column on the index into the v1 variable and reading value from cell located on row named temperature and in column named value into the v2 variable.
var oDataTable = pMe.Pm("/DataTable");
var v1 = oDataTable.GetCellValue(0, 0);
var v2 = oDataTable.GetCellValue("temperature", "value");