The
NbKeyItem property is used to get the total number of key items (including composite keys) in a record of:
- a data file described in the data model editor,
- a data file described through programming,
- an HFSQL view,
- a query.
// Retrieve the number of key items found in a record of the Customer data file
ResNbKeyItem = Customer.NbKeyItem
Syntax
<Number of items> = <Element used>.NbKeyItem
<Number of items>: Integer
Number of key items found in a record of the specified object.
<Element used>: Character string
Name of the element for which you want to find out the number of key items for a record:- name of a data file described in the data model editor or through programming,
- name of an HFSQL view,
- name of a query.
Remarks
Statistics on a record
- The NbItem property is used to get the total number of items in a record.
- The NbKeyItem property is used to get the total number of key items in a record.
- The NbMemoItem property is used to get the total number of memo items in a record.