The keynumber() function returns the numeric position of a key defined for a table. This allows you to use the key number instead of the key name to access the records in a table.
keynumber(table table_name, string_expression)
• table table_name – The table containing the key you want to know the position for.
• string expression – The name of the key in the table specified by the table_name parameter.
Integer