table column numbers
This function returns the column numbers for the columns specified.
Indirect parameter passing is disabled
2
No. | Type | Description |
---|---|---|
1 input |
string | Name of existing table |
2 input |
table column | Header name or column number See table columns as function parameters for general ruling for this parameter. |
Type | Description |
---|---|
set | Column numbers The returned set contains all column numbers of the columns specified in the 2nd function parameter. |
Table not found
Columns not found
table initialize( t, {{ Red, Orange, Yellow, Green, Turquoise, Blue, Purple, Brown, Black, ".." },
{ Rot, Orange, Gelb, Grün, Türkis, Blau, Purpur, Braun, Schwarz, Joker}} );
echo( table column numbers( t, { Red, Green, Black } ) );
echo( table column numbers( t, { 0, 3, -2 } ) ); // Same output
echo( table column numbers( t, { '..' } ) ); // All columns
{0,3,8}
{0,3,8}
{0,1,2,3,4,5,6,7,8,9}