Testing the content of a table cell

Sets the focus to cell on 11th row and 2th column of the table if the value of this cell is less than 20.

Let's have the PmiAx graphic item in the oAx variable placed in the image editor (this graphic item is set to the PmTable ActiveX object).

JavaScriptVBScriptSelect and copy to clipboard

var TextOfCell;
var oAxTable = pMe.Acx;

oAxTable.FocusedRow = 11;
oAxTable.FocusedCol = 2;
TextOfCell = Pm.ToNumber(oAxTable.FocusedCellText);
//color setting by RGB String
oAxTable.SetCellForeColor(11, 2, TextOfCell < 20 ? "#ff0000" : "#000000");
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice