Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Project Settings API > Methods

Project Settings API: getTableKeys()

Scroll Prev Next More

 

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:

About Project Settings API

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software