PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Returns:
  • the number of elements found in a one-dimensional array.
  • the number of rows found in a two-dimensional array.
  • the number of elements found in the first dimension of a three-dimensional or N-dimensional array.
Remark: This function can only be used on the WLanguage arrays.
Versions 17 and later
WEBDEV - Browser code This function is now available in Browser code.
New in version 17
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code This function is now available in Browser code.
Example
MyArray is array of 2 strings
MyArray.Insert(1, "WINDEV")
MyArray.Insert(2, "WEBDEV")
MyArray.Insert(3, "WINDEV and WEBDEV")
// Number of elements?
Trace(MyArray.Count()) // Displays 5
 
MyArray is array of 2 by 3 strings
MyArray.InsertLine(1, "A", "B", "C")
MyArray.InsertLine(2, "D", "E", "F")
// Number of rows?
Trace(MyArray.Count()) // Displays 4
 
Syntax
<Result> = <WLanguage array>.Count()
<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 Array variable to use.
Component : wd250vm.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment