ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 through programming)
  • Define the number of elements in an array item (when the item is described through programming).
Example
// Define the number of elements in the
// Title array item of Customer data file
Title.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 was 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 was defined by 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: 05/26/2022

Send a report | Local help