"exchangeColumns"

Swaps over two columns in a table.

Synopsis

setValue(string shape, "exchangeColumns", string Name1, string Name2);

shape.exchangeColumns(string Name1, string Name2);

Parameters

Parameter Description
shape Name of the object
Name1, Name2 Names of the columns to be swapped

Description

Swaps over two columns in a table, together with their full contents.

Example

In the following example, column "Forenames" will be swapped with column "Surnames".

main()
{
  TABLE1.exchangeColumns("Forenames", "Surnames");
}

Assignment

Table