4D v14.3

Size of array

Home

 
4D v14.3
Size of array

Size of array 


 

Size of array ( array ) -> Function result 
Parameter Type   Description
array  Array in Array whose size is returned
Function result  Longint in Returns the number of elements in array

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

The following example returns the size of the array anArray:

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

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

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

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}

 
PROPERTIES 

Product: 4D
Theme: Arrays
Number: 274

 
HISTORY 

Created: < 4D v6

 
SEE ALSO 

DELETE FROM ARRAY
INSERT IN ARRAY

 
ARTICLE USAGE

4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)