"exchangeColumnName"

Changes a column name at runtime.

Synopsis

shape.exchangeColumnName(string oldName, string newName);

Parameters

Parameter Description
oldName Old name of a column
name New name to be set

Description

Changes the column name from oldName to name.

If a newly set name is already taken by any other column within the table a warning is written to the LogViewer but the duplicated name is still set for the stated column.

Example

main()
{
  string oldName = "Name";
  string newName = "Last_Name";
  Table1.exchangeColumnName(oldName,newName);
}

Assignment

Table