Type.AddTableKey

About

Add a key to a table type.

Syntax

Type.AddTableKey (table as type, columns as list,  isPrimary as logical) as type  

Arguments

Argument Description
table The table type to modify.
columns Columns that define the key.
isPrimary Logical stating whether or not it is the primary key.

Example

Type.AddTableKey(tableType, {"A", "B"}, false) equals  add a non-primary key that combines values from columns A and B