ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Queue, stack, list and array functions / Array functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns:
  • the number of elements in a one-dimensional array.
  • the number of rows in a two-dimensional array.
  • the number of elements found in the first dimension of a three-dimensional or N-dimensional array.
Note: This function can only be used on WLanguage arrays.
Example
MonTableau is array of 2 strings
ArrayInsert(MonTableau, 1, "WINDEV")
ArrayInsert(MonTableau, 2, "WEBDEV")
ArrayInsert(MonTableau, 3, "WINDEV et WEBDEV")
// Nombre d'éléments ?
Trace(ArrayCount(MonTableau)) // Affiche 5
MonTableau is array of 2 by 3 strings
ArrayInsertLine(MonTableau, 1, "A", "B", "C")
ArrayInsertLine(MonTableau, 2, "D", "E", "F")
// Nombre de lignes ?
Trace(ArrayCount(MonTableau)) // Affiche 4
Syntax
<Result> = ArrayCount(<WLanguage array>)
<Result>: Integer
  • Number of elements found in the array if <WLanguage array> is a one-dimensional array.
  • Number of rows found in the array if <WLanguage array> is a two-dimensional array.
  • Number of elements found in the first dimension of the array if <WLanguage array> is a three-dimensional (or N-dimensional) array.
<WLanguage array>: Array
Name of the Array variable to use.
Component: wd300vm.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help