"cellEditableRC"

Gets / sets if a specific cell inside of the table can be edited.

Synopsis

setValue(string shape, "cellEditableRC", int row, string column, bool editable);

getValue(string shape, "cellEditableRC", int row, string column, bool &editable);

shape.cellEditableRC(int row, string column, bool editable);

Parameter

Parameter Description
shape Name of the object
row Row
column Column
editable Defines if the cell can be edited. Default: true

Description

Gets or sets if a specific cell can be edited. The cell is defined by stating the row and cloumn of the cell.

By default each cell can be edited but first the corresponding column must be enabled for editing using the methods "columnEditable" or "namedColumnEditable".

Example

main()
{
  //Create some values for the table and append them to the first column
  dyn_string vals;
  vals = makeDynString("First","Second","Third","Fourth");
  TABLE1.appendLines(4, "#1", vals);
  //Allow the editing for the first column
  TABLE1.columnEditable(0, true);
  //Disable the editing for the first, second and fourth cell of the column "#1"
  TABLE1.cellEditableRC(0,"#1",false);
  TABLE1.cellEditableRC(1,"#1",false);
  TABLE1.cellEditableRC(3,"#1",false);
}

Assignment

Table