Size of array

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 3


Size of array (array) Number

ParameterTypeDescription
arrayArrayArray whose size is returned
Function resultNumberReturns the number of elements in array

Description

The Size of array command returns the number of elements in array.

Example

1. The following example returns the size of the array anArray:

   vlSize:=Size of array(anArray)   ` vlSize gets the size of anArray

2. The following example returns the number of rows in a two-dimensional array:

   vlRows:=Size of array(a2DArray)   ` vlRows gets the size of a2DArray

3. The following example returns the number of columns for a row in a two-dimensional array:

   vlColumns:=Size of array(a2DArray{10})   ` vlColumns gets the size of a2DArray{10}

See Also

DELETE FROM ARRAY, INSERT IN ARRAY.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next