PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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).
Versions 17 and later
iPhone/iPad This property is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for iPhone/iPad applications.
iPhone/iPad This property is now available for iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
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