"columnName"
Sets the name for a table column at runtime. Note that not the title but the name of the column will be set. The same attribute also returns the column name of the defined column index at runtime.
Synopsis
shape.columnName(int index, string name);
string columnName = shape.columnName (int index);
Parameters
Parameter | Description |
---|---|
shape | Name of the object |
index | Column index |
name | Name to be set |
columnName | The returned column name |
Return value
String (name of the table column)
Description
Sets or gets the name of a table column at runtime.
If a newly set name is already taken by any column within the table a warning is written to the LogViewer but the duplicated name is still set for the stated column.
Example
Sets the column name "Example" for the column with the index number 1 of the table "Table1".
main()
{
int index = 1;
string name ="Example";
Table1.columnName(index,name);
}
Example
Returns the column name of the column with the index 1 in the table "Table1".
main()
{
string SName;
SName= Table1.columnName(1);
DebugN(SName);
}
Assignment
Table