This function is now available for Windows Phone applications.

New in version 16

This function is now available for Windows Phone applications.

This function is now available for Windows Phone applications.

Versions 18 and later

This function is now available in Windows Store apps mode.

New in version 18

This function is now available in Windows Store apps mode.

This function is now available in Windows Store apps mode.

Versions 21 and later

This function is now available in Universal Windows 10 App mode.

New in version 21

This function is now available in Universal Windows 10 App mode.

This function is now available in Universal Windows 10 App mode.

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.