Returns the names of the key fields of a table. A table can have one key field, multiple key fields, or no key fields.
Syntax
$settings->getTableKeys();
Arguments
No arguments.
Return value
An array containing the names of the table's key fields. Returns an empty array if the table has no key fields.
Example
Display the key fields of the Orders table.
$settings = new ProjectSettings("Orders");
$keyFields = $settings->getTableKeys();
foreach ($keyFields as $field)
{
echo $field . "<br>";
}
See also: