PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Statistics on a record
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
NbKeyItem (Property)
In french: NbRubriqueClé
The KeyNumber property gives the total number of key fields (including compound keys) present in an Record of:
  • a data file described in the data model editor,
  • a data file described by programming,
  • an HFSQL view,
  • a query.
Example
// 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 (with or without quotes)
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 by programming,
  • name of an HFSQL view,
  • name of a query.
Remarks

Statistics on a record

  • NbItem is used to find out the total number of items in a record.
  • The NbKeyItem property allows to know the total number of key fields of an Record.
  • NbMemoItem is used to find out the total number of memo items in a record.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment