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

Home

 
4D v19.8
entity.next( )

entity.next( ) 


 

entity.next () -> Result 
Parameter Type   Description
Result  Entity, Null in Next entity in the entity selection

The entity.next( ) method returns a reference to the next entity in 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.

If there is no valid next entity in the entity selection (i.e. you are on the last entity of the selection), the method returns Null. If the next entity has been dropped, the method returns the next valid entity (and eventually Null).

Example  

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



See also 

entity.first( )
entity.last( )
entity.previous( )

 
PROPERTIES 

Product: 4D
Theme: ORDA - Entity

 
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)