Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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 PmgWTable object in the oTable variable placed in the graphics editor.

Example:
JavaScriptVBScriptSelect and copy to clipboard

var TextOfCell;
var oTable = pMe;

oTable.FocusedRow = 11;
oTable.FocusedCol = 2;
TextOfCell = Pm.ToNumber(oTable.FocusedCellText);
//color setting by RGB String
oTable.SetCellForeColor(11, 2, TextOfCell < 20 ? "#ff0000" : "#000000");
PROMOTIC 9.0.4 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