Promotic

GetCellText - method of the PmgWTable object

Description:
Returns text of the cell.
Syntax:
String GetCellText(Long Row, Long Col)
Parameters:
Row(Long) If the value is greater or equal 0 then it is a row index (zero-based index, counted including the fixed part).
Value -2 means the last row.
Col(Long) If the value is greater or equal 0 then it is a column index (zero-based index, counted including the fixed part).
Value -2 means the last column.
Note:
This method is also functional in Web panels.
See also:
Example:
Copy the text in the cell on the 2nd row and 5th column to the cell that is one row below.
JavaScriptVBScriptSelect and copy to clipboard

var oTable = pMe.Items("/Table");
var sCell = oTable.GetCellText(1, 4);
oTable.SetCellText(2, 4, sCell);
oTable.Draw();

History:
Pm8.02.00: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.