4D v17.4

entity.last( )

Home

 
4D v17.4
entity.last( )

entity.last( )  


 

The entity.last( ) method returns a reference to the entity in last position of the entity selection.

If the entity does not belong to any existing entity selection (i.e. entity.getSelection( ) returns Null), the method returns a Null value.

Example  

 C_OBJECT($employees;$employee;$lastEmployee)
 $employees:=ds.Employee.query("lastName = :1";"H@") //This entity selection contains 3 entities
 $employee:=$employees[0]
 $lastEmployee:=$employee.last() //$lastEmployee is the last entity of the $employees entity selection



See also 

entity.first( )
entity.next( )
entity.previous( )

 
PROPERTIES 

Product: 4D
Theme: ORDA - Entity

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v17)
4D Language Reference ( 4D v17.1)
4D Language Reference ( 4D v17.2)
4D Language Reference ( 4D v17.3)
4D Language Reference ( 4D v17.4)