"cellValue"
Defines the contents of the active cell.
Synopsis
1)
setValue(string shape, "cellValue", <anytype>
Contents);
getValue(string shape, "cellValue", <anytype>
&Contents);
shape.cellValue([<anytype> Contents]);
2)
setValue (string shape, "cellValue", <dyn_anytype>
formContents);
shape.cellValue (<dyn_anytype> formContents);
Parameters
Parameter | Description |
---|---|
shape | Name of the object |
Contents | Contents of the selected cell |
formContents | One-dimensional array with up to 3 fields corresponding to [<anytype> Value <string> bCol <string> fCol]. Can only be set. |
Description
This attribute can be used to edit the contents of the selected cell. Formatted cell contents (contents plus colors, see "appendLines") can be set only but not read.
The value of the cell ("cellValue") cannot be changed by straightforward editing. It must be set using setValue(). To facilitate this, the row number, column name and cell value are passed to the main() function with "on command": main(int row, string col, anytype value).
Example
"Test" is written in different colors into the active cell of the table "table234".
main()
{
shape table=getShape("table234");
dyn_string tmp;
...
tmp[1]="Test";
tmp[2]="blue";
tmp[3]="red";
table.cellValue(tmp);
...
}
Assignment
Table