var TextOfCell;
var oTable = pMe;
oTable.FocusedRow = 11;
oTable.FocusedCol = 2;
TextOfCell = Pm.ToNumber(oTable.FocusedCellText);
// color setting by RGB String in the form "#RRGGBB"
oTable.SetCellForeColor(11, 2, TextOfCell < 20 ? "#ff0000" : "#000000");