GetColumnIndex

This function evaluates to the index of the column with the given name in a table slot.

Description

The index of the table slot column whose name matches a string.

Type

NUMERIC

Arguments

Type

Meaning

1

SLOT

the table slot in which to find a column

2

STRING

the name of the column to match

Evaluation

The labels of the slot columns are compared to the string argument until a match is found.

Comments

Table column and row indices are zero based and have units of type [NONE]. If the specified slot is not a table slot, or the specified string is not the label of a column on the slot, this function aborts the run with an error. If several columns of the table slot match the string argument, this function evaluates to the index of the left most matching column.

 
GetColumnIndex(RiverData.Minimum Flow,"Dolores")
 
0.000