This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19.8
entitySelection.length

entitySelection.length 


 

entitySelection.length -> Size of the entity selection 
Parameter Type   Description
Size of the entity selection  Longint in Number of entities in the entity selection

The entitySelection.length property returns the number of entities in the entity selection. If the entity selection is empty, it returns 0.

Entity selections always have a length property.

Example  

 C_LONGINT(vSize)
 vSize:=ds.Employee.query("gender = :1";"male").length
 ALERT(String(vSize)+" male employees found.")



See also 

entitySelection.count( )

 
PROPERTIES 

Product: 4D
Theme: ORDA - EntitySelection

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)