ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
NbArrayElement (Property)
In french: NbElémentTableau
The NbArrayElement property is used to configure the number of elements in an array item. You can:
  • Get the number of elements in an array item (defined in the data model editor or programmatically)
  • Define the number of elements in an array item (only for items defined programmatically).
Example
// Define the number of elements in the 
// Title array item of Customer data file
Civility.NbArrayElement = 3
...
// Validate the data file description
HDescribeFile(Customer)
Syntax

Getting the number of elements in an array item Hide the details

<Number of elements> = <Data file>.<item>.NbArrayElement
<Number of elements>: Integer
  • Number of elements found in the specified array item,
  • 1 if the specified item is not an array item.
<Data file>: Character string
Name of the data file used. This name was defined in the data model editor or with the File Description type.
<Item>: Character string
Name of the array item used. This name is defined in the data model editor or with the Item Description type.

Defining the number of elements in an array item Hide the details

<Item>.NbArrayElement = <New number of elements>
<Item>: Character string
Name of the array item used. This name is defined with the Item Description type.
<New number of elements>: Integer
  • Number of elements found in the specified array item,
  • 1 if the specified item is not an array item.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/06/2024

Send a report | Local help