4D v18

entity.last()

Home

 
4D v18
entity.last()

entity.last()  


 

Die Methode entity.last() gibt eine Referenz auf die Entity an letzter Stelle in der Entity-Selection zurück, zu der die ursprüngliche Entity gehört.

Gehört die Entity nicht zu einer existierenden Entity-Selection (z.B. entity.getSelection() gibt Null zurück), gibt die Methode Null zurück.

 C_OBJECT($employees;$employee;$lastEmployee)
 $employees:=ds.Employee.query("lastName = :1";"H@") //Diese Entity-Selection enthält 3 Entities
 $employee:=$employees[0]
 $lastEmployee:=$employee.last() //$lastEmployee ist die letzte Entity in der Entity-Selection $employees



Siehe auch 

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

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: ORDA - Entity

 
SEITENINHALT 
 
GESCHICHTE 

 
ARTIKELVERWENDUNG

4D Programmiersprache ( 4D v18)