This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
Size of array
|
Size of array ( array ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
array | Array |
![]() |
Array whose size is returned | |||||
Function result | Longint |
![]() |
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}
Product: 4D
Theme: Arrays
Number:
274
Created: < 4D v6
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)