"nameToColumn"

Returns the column index.

Synopsis

getValue(string shape, "nameToColumn", string columnName, int &columnIndex);

shape.nameToColumn(string columnName);

Parameters

Parameter Description
shape Name of the object
columnName Name of column
columnIndex Return value: column index, starting at 0

Description

This function returns the index (starting at 0) of the column "columnName".

Example

The following example returns the index of the column "Age";.

main()
{
  DebugN("Index: ", table.nameToColumn("Age"));
}

Assignment

Table